*, ::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 */ /* 3 */
  tab-size: 4; /* 3 */
  font-family: 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::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;
}
.tw-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
.tw-mx-1 {
  margin-left: 0.25rem;
  margin-right: 0.25rem;
}
.tw-my-3 {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}
.tw-ml-auto {
  margin-left: auto;
}
.tw-mt-1 {
  margin-top: 0.25rem;
}
.tw-flex {
  display: flex;
}
.tw-inline-flex {
  display: inline-flex;
}
.tw-size-3\.5 {
  width: 0.875rem;
  height: 0.875rem;
}
.tw-size-6 {
  width: 1.5rem;
  height: 1.5rem;
}
.tw-size-8 {
  width: 2rem;
  height: 2rem;
}
.tw-size-9 {
  width: 2.25rem;
  height: 2.25rem;
}
.tw-h-10 {
  height: 2.5rem;
}
.tw-h-5 {
  height: 1.25rem;
}
.tw-h-8 {
  height: 2rem;
}
.tw-h-9 {
  height: 2.25rem;
}
.tw-w-1\/4 {
  width: 25%;
}
.tw-w-1\/5 {
  width: 20%;
}
.tw-w-\[20\%\] {
  width: 20%;
}
.tw-w-\[60\%\] {
  width: 60%;
}
.tw-w-full {
  width: 100%;
}
.tw-w-px {
  width: 1px;
}
.tw-border-collapse {
  border-collapse: collapse;
}
@keyframes tw-spin {

  to {
    transform: rotate(360deg);
  }
}
.tw-animate-spin {
  animation: tw-spin 1s linear infinite;
}
.tw-cursor-not-allowed {
  cursor: not-allowed;
}
.tw-list-disc {
  list-style-type: disc;
}
.tw-appearance-none {
  -webkit-appearance: none;
          appearance: none;
}
.tw-flex-wrap {
  flex-wrap: wrap;
}
.tw-items-center {
  align-items: center;
}
.tw-justify-start {
  justify-content: flex-start;
}
.tw-justify-center {
  justify-content: center;
}
.tw-gap-1 {
  gap: 0.25rem;
}
.tw-gap-2 {
  gap: 0.5rem;
}
.tw-space-y-0\.5 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.125rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.125rem * var(--tw-space-y-reverse));
}
.tw-overflow-hidden {
  overflow: hidden;
}
.tw-overflow-x-auto {
  overflow-x: auto;
}
.tw-whitespace-nowrap {
  white-space: nowrap;
}
.tw-rounded {
  border-radius: 0.25rem;
}
.tw-rounded-lg {
  border-radius: 0.5rem;
}
.tw-rounded-md {
  border-radius: 0.375rem;
}
.tw-border {
  border-width: 1px;
}
.tw-border-0 {
  border-width: 0px;
}
.tw-border-b {
  border-bottom-width: 1px;
}
.tw-border-\[\#ced4da\] {
  --tw-border-opacity: 1;
  border-color: rgb(206 212 218 / var(--tw-border-opacity, 1));
}
.tw-border-\[\#e9ecef\] {
  --tw-border-opacity: 1;
  border-color: rgb(233 236 239 / var(--tw-border-opacity, 1));
}
.tw-border-\[\#f1f3f5\] {
  --tw-border-opacity: 1;
  border-color: rgb(241 243 245 / var(--tw-border-opacity, 1));
}
.tw-border-amber-200 {
  --tw-border-opacity: 1;
  border-color: rgb(253 230 138 / var(--tw-border-opacity, 1));
}
.tw-border-amber-400 {
  --tw-border-opacity: 1;
  border-color: rgb(251 191 36 / var(--tw-border-opacity, 1));
}
.tw-border-transparent {
  border-color: transparent;
}
.tw-bg-\[\#035143\] {
  --tw-bg-opacity: 1;
  background-color: rgb(3 81 67 / var(--tw-bg-opacity, 1));
}
.tw-bg-\[\#e9ecef\] {
  --tw-bg-opacity: 1;
  background-color: rgb(233 236 239 / var(--tw-bg-opacity, 1));
}
.tw-bg-\[\#f0f5f4\] {
  --tw-bg-opacity: 1;
  background-color: rgb(240 245 244 / var(--tw-bg-opacity, 1));
}
.tw-bg-\[\#f1f3f5\] {
  --tw-bg-opacity: 1;
  background-color: rgb(241 243 245 / var(--tw-bg-opacity, 1));
}
.tw-bg-\[\#f8f9fa\] {
  --tw-bg-opacity: 1;
  background-color: rgb(248 249 250 / var(--tw-bg-opacity, 1));
}
.tw-bg-\[\#fbfcfc\] {
  --tw-bg-opacity: 1;
  background-color: rgb(251 252 252 / var(--tw-bg-opacity, 1));
}
.tw-bg-amber-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(255 251 235 / var(--tw-bg-opacity, 1));
}
.tw-bg-transparent {
  background-color: transparent;
}
.tw-bg-white {
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}
.tw-p-0 {
  padding: 0px;
}
.tw-p-2 {
  padding: 0.5rem;
}
.tw-px-1\.5 {
  padding-left: 0.375rem;
  padding-right: 0.375rem;
}
.tw-px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.tw-px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}
.tw-px-3\.5 {
  padding-left: 0.875rem;
  padding-right: 0.875rem;
}
.tw-px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}
.tw-py-0\.5 {
  padding-top: 0.125rem;
  padding-bottom: 0.125rem;
}
.tw-py-1\.5 {
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
}
.tw-py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.tw-py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.tw-pl-5 {
  padding-left: 1.25rem;
}
.tw-text-left {
  text-align: left;
}
.tw-text-center {
  text-align: center;
}
.tw-align-middle {
  vertical-align: middle;
}
.tw-text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.tw-text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}
.tw-font-medium {
  font-weight: 500;
}
.tw-font-semibold {
  font-weight: 600;
}
.tw-text-\[\#035143\] {
  --tw-text-opacity: 1;
  color: rgb(3 81 67 / var(--tw-text-opacity, 1));
}
.tw-text-\[\#212529\] {
  --tw-text-opacity: 1;
  color: rgb(33 37 41 / var(--tw-text-opacity, 1));
}
.tw-text-\[\#343a40\] {
  --tw-text-opacity: 1;
  color: rgb(52 58 64 / var(--tw-text-opacity, 1));
}
.tw-text-\[\#5f6b76\] {
  --tw-text-opacity: 1;
  color: rgb(95 107 118 / var(--tw-text-opacity, 1));
}
.tw-text-amber-800 {
  --tw-text-opacity: 1;
  color: rgb(146 64 14 / var(--tw-text-opacity, 1));
}
.tw-text-red-700 {
  --tw-text-opacity: 1;
  color: rgb(185 28 28 / var(--tw-text-opacity, 1));
}
.tw-text-white {
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.tw-shadow-\[0_8px_16px_rgba\(3\,81\,67\,0\.18\)\] {
  --tw-shadow: 0 8px 16px rgba(3,81,67,0.18);
  --tw-shadow-colored: 0 8px 16px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.tw-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);
}
.tw-outline-none {
  outline: 2px solid transparent;
  outline-offset: 2px;
}
.tw-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);
}
.tw-ring-\[\#ced4da\] {
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(206 212 218 / var(--tw-ring-opacity, 1));
}
.tw-ring-\[rgba\(3\,81\,67\,0\.48\)\] {
  --tw-ring-color: rgba(3,81,67,0.48);
}
.tw-transition-colors {
  transition-property: color, background-color, border-color, fill, stroke, -webkit-text-decoration-color;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, -webkit-text-decoration-color;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

/* Custom utility classes that don't conflict */

.hover\:tw-border-\[\#357468\]:hover {
  --tw-border-opacity: 1;
  border-color: rgb(53 116 104 / var(--tw-border-opacity, 1));
}

.hover\:tw-bg-\[\#024136\]:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(2 65 54 / var(--tw-bg-opacity, 1));
}

.hover\:tw-bg-\[\#e9ecef\]:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(233 236 239 / var(--tw-bg-opacity, 1));
}

.hover\:tw-bg-\[\#f0f5f4\]:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(240 245 244 / var(--tw-bg-opacity, 1));
}

.hover\:tw-bg-\[\#f1f3f5\]:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(241 243 245 / var(--tw-bg-opacity, 1));
}

.hover\:tw-bg-\[\#fafafa\]:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(250 250 250 / var(--tw-bg-opacity, 1));
}

.hover\:tw-bg-\[rgba\(3\2c 81\2c 67\2c 0\.04\)\]:hover {
  background-color: rgba(3,81,67,0.04);
}

.hover\:tw-bg-red-50:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(254 242 242 / var(--tw-bg-opacity, 1));
}

.hover\:tw-text-\[\#212529\]:hover {
  --tw-text-opacity: 1;
  color: rgb(33 37 41 / var(--tw-text-opacity, 1));
}

.hover\:tw-text-red-600:hover {
  --tw-text-opacity: 1;
  color: rgb(220 38 38 / var(--tw-text-opacity, 1));
}

.focus\:tw-border-\[\#357468\]:focus {
  --tw-border-opacity: 1;
  border-color: rgb(53 116 104 / var(--tw-border-opacity, 1));
}

.focus\:tw-outline-none:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.focus\:tw-ring-2: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(2px + 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\:tw-ring-\[rgba\(53\2c 116\2c 104\2c 0\.15\)\]:focus {
  --tw-ring-color: rgba(53,116,104,0.15);
}

.focus-visible\:tw-outline-none:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.focus-visible\:tw-ring-2: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(2px + 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\:tw-ring-\[\#357468\]:focus-visible {
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(53 116 104 / var(--tw-ring-opacity, 1));
}

.focus-visible\:tw-ring-offset-2:focus-visible {
  --tw-ring-offset-width: 2px;
}

.disabled\:tw-pointer-events-none:disabled {
  pointer-events: none;
}

.disabled\:tw-cursor-not-allowed:disabled {
  cursor: not-allowed;
}

.disabled\:tw-text-\[\#adb5bd\]:disabled {
  --tw-text-opacity: 1;
  color: rgb(173 181 189 / var(--tw-text-opacity, 1));
}

.disabled\:tw-opacity-40:disabled {
  opacity: 0.4;
}

.disabled\:tw-opacity-50:disabled {
  opacity: 0.5;
}

/*
 * Typography for the narrative note editor.
 *
 * These are plain CSS rather than Tailwind classes because the styled elements
 * (h2, p, ul, ol) are produced by ProseMirror at runtime, so there is no JSX to
 * hang a className on. Tailwind's preflight is not in play here — the app runs
 * the plugin with a `tw-` prefix alongside legacy CSS — so each element is
 * styled explicitly instead of relying on a reset.
 *
 * This affects the on-screen editor ONLY. The PDF is rendered by
 * clinical_narrative.typ from the structured note; nothing here reaches it.
 */

.narrative-editor .narrative-editor-content {
  color: #212529;
  font-size: 15px;
  line-height: 1.65;
  min-height: 420px;
}

.narrative-editor .narrative-editor-content:focus {
  outline: none;
}

.narrative-editor .narrative-editor-content h2 {
  margin: 1.5em 0 0.4em;
  padding-bottom: 0.2em;
  border-bottom: 1px solid #e9ecef;
  color: #035143;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.narrative-editor .narrative-editor-content h2:first-child {
  margin-top: 0;
}

.narrative-editor .narrative-editor-content h3 {
  margin: 1.1em 0 0.3em;
  color: #212529;
  font-size: 14px;
  font-weight: 600;
}

.narrative-editor .narrative-editor-content p {
  margin: 0 0 0.7em;
}

.narrative-editor .narrative-editor-content p:last-child {
  margin-bottom: 0;
}

.narrative-editor .narrative-editor-content ul,
.narrative-editor .narrative-editor-content ol {
  margin: 0 0 0.7em;
  padding-left: 1.5em;
}

.narrative-editor .narrative-editor-content ul {
  list-style: disc;
}

.narrative-editor .narrative-editor-content ol {
  list-style: decimal;
}

.narrative-editor .narrative-editor-content li {
  margin: 0.15em 0;
}

.narrative-editor .narrative-editor-content li > p {
  margin: 0;
}

.narrative-editor .narrative-editor-content strong {
  font-weight: 600;
}

/* Selected atom node views (the exam tables) get a visible ring. */
.narrative-editor .ProseMirror-selectednode > div {
  box-shadow: 0 0 0 2px rgba(53, 116, 104, 0.35);
}

/* Empty-document placeholder is not used; the note is never blank on load. */
.narrative-editor .narrative-editor-content:empty::before {
  color: #adb5bd;
  content: 'Note content';
}

/* Rethink Sans is self-hosted (OFL, see fonts/OFL.txt): the Voice CSP only
   allows fonts from 'self'. */
@font-face {
  font-family: "Rethink Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/rethink-sans-latin-48f9e387.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Rethink Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/rethink-sans-latin-ext-a9304620.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

.voice-page, .voice-dialog {
  --voice-canvas: #e4eae5;
  --voice-surface: #ffffff;
  --voice-sheet: #f5f8f6;
  --voice-hover: #f2f5f2;
  --voice-selected: #eaf0eb;
  --voice-ink: #17201c;
  --voice-muted: #58635d;
  --voice-placeholder: #6b756f;
  --voice-line: #dce3de;
  --voice-divider: #e6ece8;
  --voice-accent: #1e4a3c;
  --voice-accent-hover: #173b30;
  --voice-focus-ring: rgb(30 74 60 / 14%);
  --voice-live: #c8372a;
  --voice-live-ink: #a42c21;
  --voice-live-soft: #fbeeec;
  --voice-warn-ink: #7a4d00;
  --voice-warn-soft: #fbefd9;
  --voice-font: "Rethink Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.voice-page {
  min-height: 100dvh;
  background: var(--voice-canvas);
  color: var(--voice-ink);
  font: 15px/1.5 var(--voice-font);
  -webkit-font-smoothing: antialiased;
  isolation: isolate;
}
.voice-page *, .voice-dialog * { box-sizing: border-box; }
.voice-page svg { flex-shrink: 0; }
.voice-page h1, .voice-page h2 { margin: 0; font-weight: 600; text-wrap: balance; }
.voice-page h1 { font-size: 1.875rem; line-height: 1.2; letter-spacing: -.02em; }
.voice-page h2 { font-size: 1rem; }
.voice-page p { margin: 0; text-wrap: pretty; }
/* Zero specificity so every component class can set its own type. */
:where(.voice-page, .voice-dialog) :where(button, input, select, textarea) { font: inherit; }
.voice-page button, .voice-dialog button, .voice-page summary { cursor: pointer; }
.voice-page :focus-visible { outline: 2px solid var(--voice-accent); outline-offset: 2px; }
.voice-page a { color: var(--voice-accent); }
.voice-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.voice-muted { color: var(--voice-muted); }

/* Buttons */
.voice-btn, .voice-primary { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 2.75rem; padding: 0 1.125rem; border: 1px solid #d3dbd5; border-radius: .75rem; background: var(--voice-surface); color: var(--voice-ink); font-size: .9375rem; font-weight: 500; white-space: nowrap; }
.voice-btn:hover:not(:disabled) { background: var(--voice-hover); }
.voice-primary { border-color: var(--voice-accent); background: var(--voice-accent); color: #ffffff; }
.voice-primary:hover:not(:disabled) { background: var(--voice-accent-hover); }
.voice-btn:disabled, .voice-primary:disabled { cursor: not-allowed; }
.voice-primary:disabled { border-color: #d5ddd8; background: #d5ddd8; color: #56625b; }
.voice-btn:disabled { color: var(--voice-placeholder); }
.voice-btn-quiet { border-color: transparent; background: transparent; }

/* Signed-out header, loading and agreement */
.voice-header { display: flex; align-items: center; gap: 1rem; min-height: 4rem; padding: .75rem 1.5rem; }
.voice-header > a { flex: 1; display: inline-flex; align-items: center; gap: .625rem; color: var(--voice-ink); font-size: 1rem; font-weight: 600; letter-spacing: -.01em; text-decoration: none; }
.voice-header > a > span:last-child { font-weight: 400; color: var(--voice-muted); }
.voice-header-mark { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: .7rem; background: var(--voice-accent); color: #ffffff; }
.voice-main { max-width: 80rem; margin: 0 auto; padding: 1rem 1.5rem 4rem; }
.voice-local-notice { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem .75rem; padding: .4rem 1.25rem; background: #f2f0e8; color: #6b604a; font-size: .8125rem; flex-shrink: 0; }
.voice-local-notice strong { font-weight: 600; }
.voice-local-status { margin-left: auto; }
.voice-panel { min-width: 0; padding: 1.75rem; border-radius: 1.25rem; background: var(--voice-surface); }
.voice-panel h2 { margin-bottom: 1rem; }
.voice-loading { max-width: 38rem; margin: 2rem auto; }
.voice-loading .voice-btn { margin-top: 1rem; }
.voice-intro { max-width: 44rem; padding: 2rem 0 3rem; }
.voice-intro h1 { font-size: clamp(2rem, 1.1rem + 3vw, 3.4rem); line-height: 1.08; letter-spacing: -.03em; margin-bottom: 1.25rem; }
.voice-intro p { margin-bottom: 1rem; max-width: 60ch; }
.voice-demo { display: grid; grid-template-columns: minmax(14rem, 1fr) minmax(0, 2.5fr); gap: 1rem; }
.voice-demo .narrative-note-toolbar { display: none; }
.voice-agreement { max-width: 38rem; margin: 2rem auto; }
.voice-agreement p { margin: 1rem 0; color: var(--voice-muted); }
.voice-agreement form { display: grid; gap: 1rem; margin-top: 1.5rem; }
.voice-agreement label { display: flex; flex-direction: column; gap: .375rem; font-size: .875rem; font-weight: 500; }
.voice-agreement input:not([type=checkbox]) { width: 100%; min-height: 2.75rem; padding: 0 .875rem; border: 1px solid var(--voice-line); border-radius: .75rem; background: var(--voice-surface); color: var(--voice-ink); font-size: .9375rem; }
.voice-agreement input:not([type=checkbox]):focus-visible { outline: 0; border-color: var(--voice-accent); box-shadow: 0 0 0 3px var(--voice-focus-ring); }
.voice-agreement .voice-check { flex-direction: row; align-items: flex-start; gap: .65rem; font-weight: 400; }
.voice-check input { margin-top: .3rem; accent-color: var(--voice-accent); }
.voice-agreement .voice-primary { justify-self: start; }

/* Signed-in workspace */
.voice-page[data-authenticated=true] { height: 100dvh; min-height: 0; display: flex; flex-direction: column; }
.voice-page[data-authenticated=true] .voice-main { display: flex; flex: 1; flex-direction: column; min-height: 0; width: 100%; max-width: none; margin: 0; padding: 0; }
.voice-workspace { flex: 1; min-height: 0; display: grid; grid-template-columns: 4.25rem 20rem minmax(0, 1fr); gap: .75rem; padding: .75rem; }

/* Rail */
.voice-rail { display: flex; flex-direction: column; align-items: center; gap: .25rem; min-height: 0; padding: .25rem 0; }
.voice-page .voice-rail-logo { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; margin-bottom: 1.25rem; border-radius: .8rem; background: var(--voice-accent); color: #ffffff; }
.voice-rail-item { display: flex; flex-direction: column; align-items: center; gap: .25rem; width: 4.25rem; padding: .625rem 0 .5rem; border: 0; border-radius: .875rem; background: transparent; color: #46524c; font-size: .75rem; font-weight: 500; list-style: none; }
.voice-rail-item::-webkit-details-marker { display: none; }
.voice-rail-item:hover { background: rgb(30 74 60 / 8%); }
.voice-rail-item[aria-current=page], .voice-rail-menu[open] > .voice-rail-item { background: var(--voice-surface); color: var(--voice-accent); }
.voice-rail-spacer { flex: 1; }
.voice-rail-menu { position: relative; }
.voice-menu-panel { position: absolute; z-index: 30; top: 0; left: calc(100% + .5rem); display: flex; flex-direction: column; gap: .125rem; min-width: 16rem; padding: .375rem; border: 1px solid var(--voice-line); border-radius: .875rem; background: var(--voice-surface); box-shadow: 0 12px 32px rgb(23 32 28 / 14%); }
.voice-account-menu .voice-menu-panel { top: auto; bottom: 0; }
.voice-page .voice-menu-head { padding: .5rem .75rem .625rem; margin-bottom: .25rem; border-bottom: 1px solid var(--voice-divider); font-size: .8125rem; color: var(--voice-muted); overflow-wrap: anywhere; }
.voice-menu-head strong { display: block; color: var(--voice-ink); font-size: .875rem; font-weight: 600; }
.voice-menu-panel button { display: flex; align-items: center; gap: .5rem; width: 100%; min-height: 2.5rem; padding: 0 .75rem; border: 0; border-radius: .625rem; background: transparent; color: var(--voice-ink); font-size: .875rem; text-align: left; }
.voice-menu-panel button:hover:not(:disabled) { background: var(--voice-hover); }
.voice-menu-panel button svg { color: var(--voice-muted); }
.voice-allowance { display: flex; flex-direction: column; align-items: center; gap: .125rem; padding: .5rem 0 .75rem; font-size: .75rem; color: #46524c; }
.voice-allowance-track { stroke: #d3ddd6; }
.voice-allowance-fill { stroke: var(--voice-accent); }
.voice-allowance-count { fill: var(--voice-ink); font: 600 12px var(--voice-font); }
.voice-avatar { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: #c9d8ce; color: var(--voice-accent); font-weight: 600; list-style: none; }
.voice-avatar::-webkit-details-marker { display: none; }

/* Encounter list */
.voice-patients { min-width: 0; min-height: 0; display: flex; flex-direction: column; padding: 1.25rem .75rem .75rem; border-radius: 1.25rem; background: var(--voice-surface); }
.voice-patients-heading { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; padding: 0 .5rem 1rem; }
.voice-page .voice-patients-heading h2 { font-size: 1.25rem; letter-spacing: -.01em; }
.voice-patients-heading > span { font-size: .8125rem; color: var(--voice-muted); font-variant-numeric: tabular-nums; }
.voice-new { width: 100%; }
.voice-search { display: flex; align-items: center; gap: .5rem; height: 2.75rem; margin: .75rem 0 .25rem; padding: 0 .375rem 0 .75rem; border: 1px solid var(--voice-line); border-radius: .75rem; color: var(--voice-muted); }
.voice-search:focus-within { border-color: var(--voice-accent); box-shadow: 0 0 0 3px var(--voice-focus-ring); }
.voice-page .voice-search input { flex: 1; min-width: 0; border: 0; padding: 0; background: transparent; outline: none; color: var(--voice-ink); font-size: .9375rem; }
.voice-search input::placeholder { color: var(--voice-placeholder); }
.voice-search input::-webkit-search-cancel-button { display: none; }
.voice-icon-button { display: grid; place-items: center; width: 2rem; height: 2rem; padding: 0; border: 0; border-radius: .5rem; background: transparent; color: var(--voice-muted); }
.voice-icon-button:hover { background: var(--voice-hover); }
.voice-patient-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin: 0 -.25rem; padding: 0 .25rem .5rem; }
.voice-page .voice-list-label { padding: 1rem .75rem .375rem; font-size: .8125rem; color: var(--voice-muted); }
.voice-patient-list { display: flex; flex-direction: column; gap: .125rem; margin: 0; padding: 0; list-style: none; }
.voice-patient-row, .voice-current-draft { display: flex; align-items: center; gap: .75rem; width: 100%; min-height: 3.5rem; padding: .5rem .625rem; border: 0; border-radius: .75rem; background: transparent; color: var(--voice-ink); text-align: left; }
.voice-patient-row:hover:not(:disabled) { background: var(--voice-hover); }
.voice-patient-row[aria-current=true], .voice-current-draft { background: var(--voice-selected); }
.voice-patient-row:disabled { cursor: default; }
.voice-patient-row:disabled:not([aria-current=true]) { opacity: .6; }
.voice-current-draft { margin-top: .5rem; }
.voice-avatar-initials { flex: none; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: #eef2ef; color: #3c4a43; font-size: .8125rem; font-weight: 600; }
.voice-patient-row[aria-current=true] .voice-avatar-initials, .voice-current-draft .voice-avatar-initials { background: #d3e2d8; color: var(--voice-accent); }
.voice-current-draft[data-live=true] .voice-avatar-initials { background: var(--voice-live-soft); color: var(--voice-live-ink); }
.voice-row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.voice-row-name { overflow: hidden; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.voice-row-sub { font-size: .8125rem; color: var(--voice-muted); }
.voice-row-live { display: inline-flex; align-items: center; gap: .375rem; color: var(--voice-live-ink); }
.voice-expiry { flex: none; padding: .125rem .5rem; border-radius: 999px; background: var(--voice-warn-soft); color: var(--voice-warn-ink); font-size: .75rem; font-weight: 500; }
.voice-list-empty { padding: 1rem .75rem; font-size: .875rem; }
.voice-list-empty p + p { padding-top: .35rem; color: var(--voice-muted); }
.voice-page .voice-retention { display: flex; align-items: flex-start; gap: .625rem; margin-top: .25rem; padding: .875rem .625rem .25rem; border-top: 1px solid var(--voice-divider); font-size: .8125rem; color: var(--voice-muted); }
.voice-retention svg { margin-top: .125rem; }
.voice-live-dot { display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; background: var(--voice-live); animation: voice-pulse 1.6s ease-in-out infinite; }

/* Encounter panel */
.voice-encounter { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; border-radius: 1.25rem; background: var(--voice-surface); }
.voice-compose { display: flex; flex: 1; flex-direction: column; min-height: 0; }
.voice-encounter-header { flex-shrink: 0; padding: 1.75rem 2rem 0; }
.voice-encounter-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.voice-title-field { flex: 1 1 20rem; min-width: 0; }
.voice-page .voice-title-input { width: 100%; max-width: 34rem; margin-left: -.375rem; padding: .125rem .375rem; border: 0; border-radius: .5rem; background: transparent; color: var(--voice-ink); font-size: 1.875rem; line-height: 1.2; font-weight: 600; letter-spacing: -.02em; }
.voice-title-input:hover:not(:disabled) { background: var(--voice-hover); }
.voice-page .voice-title-input:focus-visible { outline: 2px solid var(--voice-accent); outline-offset: 0; background: var(--voice-surface); }
.voice-title-input::placeholder { color: var(--voice-placeholder); }
.voice-encounter-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.voice-save-state { display: inline-flex; align-items: center; gap: .375rem; font-size: .875rem; color: var(--voice-muted); }
.voice-save-state svg { color: var(--voice-accent); }
.voice-recorder-slot:empty { display: none; }

/* Recorder */
.voice-recorder { display: flex; align-items: center; gap: .75rem; min-height: 3.5rem; border-radius: 1rem; }
.voice-recorder:not([data-state=idle]) { padding: .375rem .375rem .375rem 1rem; background: var(--voice-live-soft); }
.voice-recorder[data-state=paused] { background: #eef2ef; }
.voice-recorder-status { display: inline-flex; align-items: center; gap: .5rem; color: var(--voice-live-ink); font-size: .875rem; font-weight: 600; }
.voice-recorder[data-state=paused] .voice-recorder-status { color: var(--voice-ink); }
.voice-level { --voice-level: 0; display: flex; align-items: center; gap: 3px; height: 1.5rem; }
.voice-level span { display: block; width: 3px; height: 1.375rem; border-radius: 2px; background: var(--voice-live); transform: scaleY(calc(.18 + var(--voice-level) * var(--voice-bar, .8))); transition: transform 80ms linear; }
.voice-level span:nth-child(1) { --voice-bar: .45; }
.voice-level span:nth-child(2) { --voice-bar: .75; }
.voice-level span:nth-child(3) { --voice-bar: .95; }
.voice-level span:nth-child(4) { --voice-bar: .6; }
.voice-level span:nth-child(5) { --voice-bar: .85; }
.voice-level span:nth-child(6) { --voice-bar: .5; }
.voice-level span:nth-child(7) { --voice-bar: .7; }
.voice-recorder[data-state=paused] .voice-level span { background: #9aa59f; }
.voice-recording-time { min-width: 2.75rem; color: var(--voice-ink); font-size: .9375rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.voice-recorder-button { display: inline-flex; align-items: center; justify-content: center; gap: .375rem; min-height: 2.75rem; padding: 0 .875rem; border: 0; border-radius: .75rem; background: var(--voice-surface); color: var(--voice-ink); font-size: .875rem; font-weight: 500; }
.voice-recorder-button:hover:not(:disabled) { background: #f6f2f1; }
.voice-recorder-stop { min-width: 2.75rem; background: var(--voice-ink); color: #ffffff; }
.voice-recorder-stop:hover:not(:disabled) { background: #2c3832; }
.voice-recorder-stop:disabled { background: #46524c; cursor: progress; }

/* PDF detail chips */
.voice-fields { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .875rem; }
.voice-chip { position: relative; display: inline-flex; align-items: center; gap: .5rem; min-height: 2.5rem; padding: 0 .75rem 0 .875rem; border: 1px solid var(--voice-line); border-radius: 999px; background: var(--voice-surface); color: var(--voice-ink); font-size: .875rem; cursor: text; }
.voice-chip:hover { border-color: #c9d3cd; background: #f4f7f5; }
.voice-chip:focus-within { border-color: var(--voice-accent); box-shadow: 0 0 0 3px var(--voice-focus-ring); }
.voice-chip > svg { color: var(--voice-muted); }
.voice-chip-key { color: var(--voice-muted); }
.voice-page .voice-chip input, .voice-page .voice-chip select { min-width: 0; border: 0; padding: 0; background: transparent; color: var(--voice-ink); outline: none; font-size: .875rem; }
.voice-chip input[type=date] { width: 7.75rem; font-variant-numeric: tabular-nums; }
.voice-chip input::-webkit-calendar-picker-indicator { margin-left: .25rem; opacity: .55; cursor: pointer; }
.voice-chip input:invalid { color: var(--voice-live-ink); }
.voice-chip-title { padding-left: .75rem; border-color: #eef3ef; background: #eef3ef; cursor: pointer; }
.voice-chip-title:hover { border-color: #e4ece6; background: #e4ece6; }
.voice-page .voice-chip-title select { max-width: 20rem; padding-right: 1.25rem; appearance: none; -webkit-appearance: none; font-weight: 500; text-overflow: ellipsis; cursor: pointer; }
.voice-chip-chevron { position: absolute; right: .75rem; pointer-events: none; }
.voice-chip-icon { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; padding: 0; border: 1px solid var(--voice-line); border-radius: 50%; background: var(--voice-surface); color: var(--voice-muted); }
.voice-chip-icon:hover:not(:disabled) { background: var(--voice-hover); color: var(--voice-ink); }
.voice-chip:has(:disabled), .voice-chip-icon:disabled { opacity: .6; }
.voice-details-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: .75rem; font-size: .8125rem; color: var(--voice-muted); }

/* Stage row (Dictation, then Narrative) */
.voice-stages { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1rem; margin-top: 1.5rem; border-bottom: 1px solid var(--voice-divider); }
.voice-stage-list { display: flex; flex-wrap: wrap; gap: .25rem; }
.voice-stage { position: relative; display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; padding: 0 .875rem; color: var(--voice-placeholder); font-size: .9375rem; font-weight: 500; }
.voice-stage[data-current=true] { color: var(--voice-ink); cursor: text; }
.voice-stage[data-current=true]::after { content: ""; position: absolute; left: .625rem; right: .625rem; bottom: -1px; height: 2px; border-radius: 2px; background: var(--voice-accent); }
.voice-stage small { font-size: .75rem; font-weight: 400; }
.voice-until { padding: .5rem 0; font-size: .8125rem; color: var(--voice-muted); }

/* Body */
.voice-encounter-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 1.5rem 2rem 2rem; }
.voice-dictation-sheet { max-width: 50rem; padding: 1.5rem 1.75rem 1.25rem; border-radius: 1rem; background: var(--voice-sheet); }
.voice-dictation-sheet:focus-within { box-shadow: inset 0 0 0 2px rgb(30 74 60 / 30%); }
.voice-page .voice-dictation-sheet textarea { display: block; width: 100%; min-height: 22rem; padding: 0; border: 0; background: transparent; color: var(--voice-ink); outline: none; resize: vertical; font-size: 1.0625rem; line-height: 1.7; }
.voice-dictation-sheet textarea::placeholder { color: var(--voice-placeholder); }
/* Grow with the dictation so the live line sits right under the last words. */
@supports (field-sizing: content) {
  .voice-page .voice-dictation-sheet textarea { field-sizing: content; min-height: 16rem; resize: none; }
}
.voice-page .voice-dictation-fallback { margin-bottom: 1rem; font-size: .875rem; }
.voice-page .voice-interim { margin-top: .75rem; color: #5f6964; font-size: 1.0625rem; line-height: 1.7; }
.voice-interim[data-live=true]::after { content: ""; display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -3px; background: var(--voice-live); animation: voice-caret 1s steps(1) infinite; }
.voice-dictation-caption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem .75rem; margin-top: 1rem; padding-top: .75rem; border-top: 1px solid #e1e8e3; color: var(--voice-muted); font-size: .8125rem; font-variant-numeric: tabular-nums; }
.voice-encounter-footer { flex-shrink: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; padding: .875rem 2rem; border-top: 1px solid var(--voice-divider); }
.voice-page .voice-storage-note { display: flex; align-items: flex-start; gap: .5rem; max-width: 44rem; font-size: .8125rem; color: var(--voice-muted); }
.voice-storage-note svg { margin-top: .125rem; }
.voice-footer-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 1rem; margin-left: auto; font-size: .8125rem; color: var(--voice-muted); }
.voice-review { padding-top: 1.25rem; }
.voice-review > :last-child { max-width: 56rem; }
.voice-page .voice-export-success { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding-bottom: 1rem; color: var(--voice-accent); font-size: .875rem; }
.voice-page .voice-error { margin-bottom: 1rem; padding: .75rem 1rem; border: 1px solid rgb(164 44 33 / 20%); border-radius: .75rem; background: var(--voice-live-soft); color: var(--voice-live-ink); font-size: .875rem; }

/* Dialogs */
.voice-dialog-overlay { position: fixed; inset: 0; z-index: 40; background: rgb(23 32 28 / 32%); }
.voice-dialog { position: fixed; z-index: 41; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(28rem, calc(100vw - 2rem)); padding: 1.75rem; border-radius: 1.25rem; background: var(--voice-surface); box-shadow: 0 24px 64px rgb(23 32 28 / 18%); color: var(--voice-ink); font: 15px/1.5 var(--voice-font); }
.voice-dialog h2 { margin: 0; padding-right: 1.5rem; font-size: 1.25rem; font-weight: 600; letter-spacing: -.01em; }
.voice-dialog p { margin: .5rem 0 0; font-size: .875rem; color: var(--voice-muted); }
.voice-dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .5rem; padding-top: 1rem; }
.voice-dialog button { min-height: 2.75rem; padding: 0 1rem; border: 1px solid #d3dbd5; border-radius: .75rem; background: var(--voice-surface); color: var(--voice-ink); font-weight: 500; }
.voice-dialog button:hover:not(:disabled) { background: var(--voice-hover); }
.voice-dialog-actions button:last-child { border-color: transparent; background: transparent; color: var(--voice-live-ink); }
.voice-dialog-actions button:last-child:hover:not(:disabled) { background: var(--voice-live-soft); }
.voice-dialog button:focus-visible { outline: 2px solid var(--voice-accent); outline-offset: 2px; }
.voice-dialog .voice-dialog-close { position: absolute; top: .75rem; right: .75rem; display: grid; place-items: center; min-height: 2.25rem; width: 2.25rem; padding: 0; border: 0; background: transparent; }
.voice-preset-dialog form { display: grid; gap: .875rem; margin-top: 1.25rem; }
.voice-preset-dialog label { display: grid; gap: .375rem; font-size: .875rem; font-weight: 500; }
.voice-preset-dialog input { width: 100%; min-width: 0; min-height: 2.75rem; padding: 0 .875rem; border: 1px solid var(--voice-line); border-radius: .75rem; background: var(--voice-surface); color: var(--voice-ink); font: inherit; font-size: .9375rem; }
.voice-preset-dialog input:focus-visible { outline: 0; border-color: var(--voice-accent); box-shadow: 0 0 0 3px var(--voice-focus-ring); }
.voice-preset-dialog input:disabled { background: var(--voice-hover); }
.voice-preset-dialog .voice-dialog-actions { padding-top: .25rem; }
:is(.voice-preset-dialog, .voice-letterhead-dialog) .voice-dialog-actions button:last-child { border-color: var(--voice-accent); background: var(--voice-accent); color: #ffffff; }
:is(.voice-preset-dialog, .voice-letterhead-dialog) .voice-dialog-actions button:last-child:hover:not(:disabled) { background: var(--voice-accent-hover); }
.voice-letterhead-dialog .voice-dialog-actions button:last-child { display: inline-flex; align-items: center; gap: .5rem; }
.voice-letterhead-dialog .voice-dialog-actions button:disabled { opacity: .65; cursor: not-allowed; }
.voice-letterhead-dialog p[role=alert] { color: var(--voice-live-ink); }
.voice-letterhead-preview { display: grid; place-items: center; min-height: 5rem; margin-top: 1rem; padding: .75rem; border: 1px solid var(--voice-line); border-radius: .75rem; }
.voice-letterhead-preview img { display: block; max-width: 100%; max-height: 7rem; }
.voice-letterhead-preview .voice-letterhead-filename { max-width: 100%; overflow-wrap: anywhere; }
.voice-preset-dialog [role="alert"] { color: var(--voice-live-ink); }

@keyframes voice-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@keyframes voice-caret { 50% { opacity: 0; } }

@media (min-width: 48rem) and (max-width: 74rem) {
  .voice-workspace { grid-template-columns: 4.25rem 17rem minmax(0, 1fr); }
  .voice-encounter-header { padding: 1.5rem 1.5rem 0; }
  .voice-encounter-scroll { padding: 1.25rem 1.5rem 1.5rem; }
  .voice-encounter-footer { padding: .875rem 1.5rem; }
}
@media (max-width: 47.99rem) {
  .voice-header { padding: .5rem 1rem; }
  .voice-main { padding: .5rem 1rem 2rem; }
  .voice-local-notice { padding: .4rem 1rem; font-size: .75rem; }
  .voice-local-notice > span:first-of-type { display: none; }
  .voice-workspace { display: flex; flex-direction: column; gap: .5rem; padding: .5rem; }
  .voice-rail { flex-direction: row; gap: .25rem; padding: 0; }
  .voice-page .voice-rail-logo { width: 2.5rem; height: 2.5rem; margin: 0 .5rem 0 0; }
  .voice-rail-item { width: 2.75rem; height: 2.75rem; padding: 0; justify-content: center; }
  .voice-rail-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .voice-allowance { padding: 0 .25rem; }
  .voice-menu-panel, .voice-account-menu .voice-menu-panel { top: calc(100% + .5rem); bottom: auto; left: auto; right: 0; }
  .voice-rail-menu:not(.voice-account-menu) .voice-menu-panel { left: 0; right: auto; }
  .voice-patients { display: none; flex: 1; }
  .voice-workspace[data-show-patients=true] .voice-patients { display: flex; }
  .voice-workspace[data-show-patients=true] .voice-encounter { display: none; }
  .voice-encounter { flex: 1; }
  .voice-encounter-header { padding: 1.25rem 1rem 0; }
  .voice-page .voice-title-input { font-size: 1.5rem; }
  .voice-recorder-slot, .voice-recorder { flex: 1 1 100%; }
  .voice-recorder { gap: .5rem; }
  .voice-recorder:not([data-state=idle]) { padding-left: .75rem; }
  .voice-recorder-button { padding: 0 .625rem; }
  .voice-recording-time { margin-left: auto; }
  .voice-recorder .voice-primary { width: 100%; }
  /* One swipeable row keeps the dictation above the fold on phones. */
  .voice-fields { flex-wrap: nowrap; overflow-x: auto; margin: .75rem -1rem 0; padding: .25rem 1rem; scrollbar-width: none; }
  .voice-fields::-webkit-scrollbar { display: none; }
  .voice-fields > * { flex-shrink: 0; }
  .voice-stage small { display: none; }
  .voice-encounter-scroll { padding: 1rem; }
  .voice-dictation-sheet { padding: 1rem; }
  .voice-page .voice-dictation-sheet textarea { min-height: 14rem; }
  .voice-encounter-footer { padding: .75rem 1rem; }
  .voice-footer-actions, .voice-footer-actions .voice-primary { width: 100%; }
  .voice-page .voice-chip input, .voice-page .voice-chip select, .voice-page .voice-search input, .voice-page .voice-dictation-sheet textarea { font-size: 1rem; }
  .voice-demo { grid-template-columns: 1fr; }
  .voice-agreement, .voice-loading { margin: 1rem 0; }
}
@media (pointer: coarse) {
  .voice-patient-row { min-height: 4rem; }
}
@media (prefers-reduced-motion: reduce) {
  .voice-page *, .voice-dialog * { scroll-behavior: auto; transition: none; animation: none; }
}

