*, ::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: "Familjen Grotesk", -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", "Heiti TC", sans-serif;
  /* 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: "DM Mono", ui-monospace, SFMono-Regular, Menlo, 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;
}

input:where([type='text']),input:where(:not([type])),input:where([type='email']),input:where([type='url']),input:where([type='password']),input:where([type='number']),input:where([type='date']),input:where([type='datetime-local']),input:where([type='month']),input:where([type='search']),input:where([type='tel']),input:where([type='time']),input:where([type='week']),select:where([multiple]),textarea,select {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background-color: #fff;
  border-color: #6b7280;
  border-width: 1px;
  border-radius: 0px;
  padding-top: 0.5rem;
  padding-right: 0.75rem;
  padding-bottom: 0.5rem;
  padding-left: 0.75rem;
  font-size: 1rem;
  line-height: 1.5rem;
  --tw-shadow: 0 0 #0000;
}

input:where([type='text']):focus, input:where(:not([type])):focus, input:where([type='email']):focus, input:where([type='url']):focus, input:where([type='password']):focus, input:where([type='number']):focus, input:where([type='date']):focus, input:where([type='datetime-local']):focus, input:where([type='month']):focus, input:where([type='search']):focus, input:where([type='tel']):focus, input:where([type='time']):focus, input:where([type='week']):focus, select:where([multiple]):focus, textarea:focus, select:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  --tw-ring-inset: var(--tw-empty,/*!*/ /*!*/);
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: #2563eb;
  --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);
  border-color: #2563eb;
}

input::-moz-placeholder, textarea::-moz-placeholder {
  color: #6b7280;
  opacity: 1;
}

input::placeholder,textarea::placeholder {
  color: #6b7280;
  opacity: 1;
}

::-webkit-datetime-edit-fields-wrapper {
  padding: 0;
}

::-webkit-date-and-time-value {
  min-height: 1.5em;
  text-align: inherit;
}

::-webkit-datetime-edit {
  display: inline-flex;
}

::-webkit-datetime-edit,::-webkit-datetime-edit-year-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-meridiem-field {
  padding-top: 0;
  padding-bottom: 0;
}

select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
  -webkit-print-color-adjust: exact;
          print-color-adjust: exact;
}

select:where([multiple]),select:where([size]:not([size="1"])) {
  background-image: initial;
  background-position: initial;
  background-repeat: unset;
  background-size: initial;
  padding-right: 0.75rem;
  -webkit-print-color-adjust: unset;
          print-color-adjust: unset;
}

input:where([type='checkbox']),input:where([type='radio']) {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  padding: 0;
  -webkit-print-color-adjust: exact;
          print-color-adjust: exact;
  display: inline-block;
  vertical-align: middle;
  background-origin: border-box;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  flex-shrink: 0;
  height: 1rem;
  width: 1rem;
  color: #2563eb;
  background-color: #fff;
  border-color: #6b7280;
  border-width: 1px;
  --tw-shadow: 0 0 #0000;
}

input:where([type='checkbox']) {
  border-radius: 0px;
}

input:where([type='radio']) {
  border-radius: 100%;
}

input:where([type='checkbox']):focus,input:where([type='radio']):focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  --tw-ring-inset: var(--tw-empty,/*!*/ /*!*/);
  --tw-ring-offset-width: 2px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: #2563eb;
  --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);
}

input:where([type='checkbox']):checked,input:where([type='radio']):checked {
  border-color: transparent;
  background-color: currentColor;
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
}

input:where([type='checkbox']):checked {
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
}

@media (forced-colors: active)  {
  input:where([type='checkbox']):checked {
    -webkit-appearance: auto;
       -moz-appearance: auto;
            appearance: auto;
  }
}

input:where([type='radio']):checked {
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e");
}

@media (forced-colors: active)  {
  input:where([type='radio']):checked {
    -webkit-appearance: auto;
       -moz-appearance: auto;
            appearance: auto;
  }
}

input:where([type='checkbox']):checked:hover,input:where([type='checkbox']):checked:focus,input:where([type='radio']):checked:hover,input:where([type='radio']):checked:focus {
  border-color: transparent;
  background-color: currentColor;
}

input:where([type='checkbox']):indeterminate {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e");
  border-color: transparent;
  background-color: currentColor;
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
}

@media (forced-colors: active)  {
  input:where([type='checkbox']):indeterminate {
    -webkit-appearance: auto;
       -moz-appearance: auto;
            appearance: auto;
  }
}

input:where([type='checkbox']):indeterminate:hover,input:where([type='checkbox']):indeterminate:focus {
  border-color: transparent;
  background-color: currentColor;
}

input:where([type='file']) {
  background: unset;
  border-color: inherit;
  border-width: 0;
  border-radius: 0;
  padding: 0;
  font-size: unset;
  line-height: inherit;
}

input:where([type='file']):focus {
  outline: 1px solid ButtonText;
  outline: 1px auto -webkit-focus-ring-color;
}

/*
   * hidden 屬性必須勝過 utility 的 display。
   *
   * 瀏覽器預設的 [hidden]{display:none} 與 class 選擇器同權重，而 Tailwind 的
   * 樣式表在後面，於是 `class="grid" hidden` 的元素仍然看得見——JS 切換畫面
   * 會變成全部一起顯示。
   */

[hidden] {
  display: none !important;
}

html {
  /* 中文行高偏緊會擠，1.8 是實測後的值 */
  line-height: 1.8;
  -webkit-text-size-adjust: 100%;
}

/* 數字一律等寬（規則 A3）：工時表六個時間欄位乘上百人，
     比例數字會讓冒號逐列跳動 */

.font-mono,
  table td,
  table th,
  input[type='time'],
  input[type='date'],
  input[type='number'] {
  font-variant-numeric: tabular-nums;
}

/*
   * 表單控制項的全站樣式。
   *
   * <c-field> 用 {{ field }} 交給 Django 渲染 widget，所以樣式必須落在元素上，
   * 不能只寫在元件模板裡。這裡用的都是 token utility（border-rule / text-ink…），
   * 沒有重新定義任何顏色，因此不違反「token 單一來源」。
   *
   * 有外框的方框而非底線式：底線的邊界太弱，使用者不點下去不知道哪裡可以輸入。
   * 這是 ui-spec 規則 A7 於 2026-08-19 的修訂。
   */

input[type='text'], input[type='email'], input[type='password'],
  input[type='number'], input[type='date'], input[type='time'],
  input[type='datetime-local'], input[type='search'], input[type='tel'],
  textarea, select {
  min-height: 48px;
  width: 100%;
  border-radius: 8px;
  border-width: 1px;
  --tw-border-opacity: 1;
  border-color: rgb(205 206 198 / var(--tw-border-opacity, 1));
  --tw-bg-opacity: 1;
  background-color: rgb(245 245 241 / var(--tw-bg-opacity, 1));
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
  font-size: 1rem;
  line-height: 1.5rem;
  --tw-text-opacity: 1;
  color: rgb(27 30 28 / var(--tw-text-opacity, 1));
}

input[type='text']::-moz-placeholder, input[type='email']::-moz-placeholder, input[type='password']::-moz-placeholder, input[type='number']::-moz-placeholder, input[type='date']::-moz-placeholder, input[type='time']::-moz-placeholder, input[type='datetime-local']::-moz-placeholder, input[type='search']::-moz-placeholder, input[type='tel']::-moz-placeholder, textarea::-moz-placeholder, select::-moz-placeholder {
  --tw-text-opacity: 1;
  color: rgb(122 128 123 / var(--tw-text-opacity, 1));
}

input[type='text']::placeholder, input[type='email']::placeholder, input[type='password']::placeholder,
  input[type='number']::placeholder, input[type='date']::placeholder, input[type='time']::placeholder,
  input[type='datetime-local']::placeholder, input[type='search']::placeholder, input[type='tel']::placeholder,
  textarea::placeholder, select::placeholder {
  --tw-text-opacity: 1;
  color: rgb(122 128 123 / var(--tw-text-opacity, 1));
}

input[type='text']:focus, input[type='email']:focus, input[type='password']:focus,
  input[type='number']:focus, input[type='date']:focus, input[type='time']:focus,
  input[type='datetime-local']:focus, input[type='search']:focus, input[type='tel']:focus,
  textarea:focus, select:focus {
  --tw-border-opacity: 1;
  border-color: rgb(46 90 99 / var(--tw-border-opacity, 1));
  outline: 2px solid transparent;
  outline-offset: 2px;
  --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);
  --tw-ring-color: rgb(46 90 99 / 0.25);
}

textarea {
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
  line-height: 1.625;
}

select {
  padding-right: 2.25rem;
}

/* 錯誤狀態由 <c-field> 在外層加 data-invalid */

[data-invalid] input, [data-invalid] textarea, [data-invalid] select {
  --tw-border-opacity: 1;
  border-color: rgb(143 68 54 / var(--tw-border-opacity, 1));
}

[data-invalid] input:focus, [data-invalid] textarea:focus, [data-invalid] select:focus {
  --tw-border-opacity: 1;
  border-color: rgb(143 68 54 / var(--tw-border-opacity, 1));
  --tw-ring-color: rgb(143 68 54 / 0.25);
}

input[type='checkbox'], input[type='radio'] {
  width: 1.25rem;
  height: 1.25rem;
  --tw-border-opacity: 1;
  border-color: rgb(205 206 198 / var(--tw-border-opacity, 1));
  --tw-text-opacity: 1;
  color: rgb(46 90 99 / var(--tw-text-opacity, 1));
}

input[type='checkbox']:focus, input[type='radio']:focus {
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(46 90 99 / var(--tw-ring-opacity, 1));
  --tw-ring-offset-width: 0px;
}

/* LIFF 在 LINE App 內以 WebView 開啟，需處理瀏海與底部 home indicator */

body {
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

/*
   * 側邊欄收合。狀態放在 <html> 上，由 base.html 的 inline script 於繪製前套用，
   * 避免每次換頁閃一下展開再收起。
   */

.sidebar {
  width: 100%;
}

@media (min-width: 768px) {
  .sidebar {
    width: 212px;
    transition: width 0.15s ease;
  }

  [data-sidebar='collapsed'] .sidebar {
    width: 4.25rem;
  }

  [data-sidebar='collapsed'] .nav-label {
    display: none;
  }

  /* 收合時圖示置中，並移除為文字預留的間距 */

  [data-sidebar='collapsed'] .nav-link {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
  }

  [data-sidebar='collapsed'] .sidebar-icon-collapse {
    display: none;
  }

  [data-sidebar='collapsed'] .sidebar-icon-expand {
    display: block;
  }
}

.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;
}

.pointer-events-none {
  pointer-events: none;
}

.collapse {
  visibility: collapse;
}

.static {
  position: static;
}

.fixed {
  position: fixed;
}

.absolute {
  position: absolute;
}

.relative {
  position: relative;
}

.bottom-14 {
  bottom: 3.5rem;
}

.bottom-4 {
  bottom: 1rem;
}

.bottom-5 {
  bottom: 1.25rem;
}

.right-0 {
  right: 0px;
}

.right-4 {
  right: 1rem;
}

.right-5 {
  right: 1.25rem;
}

.z-dropdown {
  z-index: 60;
}

.z-overlay {
  z-index: 80;
}

.z-toast {
  z-index: 90;
}

.-m-1 {
  margin: -0.25rem;
}

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

.-mb-px {
  margin-bottom: -1px;
}

.-mr-1 {
  margin-right: -0.25rem;
}

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

.mb-6 {
  margin-bottom: 1.5rem;
}

.ml-0\.5 {
  margin-left: 0.125rem;
}

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

.ml-1\.5 {
  margin-left: 0.375rem;
}

.ml-2 {
  margin-left: 0.5rem;
}

.mt-0\.5 {
  margin-top: 0.125rem;
}

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

.mt-1\.5 {
  margin-top: 0.375rem;
}

.mt-14 {
  margin-top: 3.5rem;
}

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

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

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

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

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

.mt-\[-2px\] {
  margin-top: -2px;
}

.mt-auto {
  margin-top: auto;
}

.block {
  display: block;
}

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

.inline {
  display: inline;
}

.flex {
  display: flex;
}

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

.table {
  display: table;
}

.grid {
  display: grid;
}

.contents {
  display: contents;
}

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

.hidden {
  display: none;
}

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

.size-3\.5 {
  width: 0.875rem;
  height: 0.875rem;
}

.size-4 {
  width: 1rem;
  height: 1rem;
}

.size-\[5px\] {
  width: 5px;
  height: 5px;
}

.h-20 {
  height: 5rem;
}

.h-\[340px\] {
  height: 340px;
}

.max-h-72 {
  max-height: 18rem;
}

.\!min-h-0 {
  min-height: 0px !important;
}

.\!min-h-\[116px\] {
  min-height: 116px !important;
}

.min-h-\[32px\] {
  min-height: 32px;
}

.min-h-\[34px\] {
  min-height: 34px;
}

.min-h-dvh {
  min-height: 100dvh;
}

.min-h-touch {
  min-height: 48px;
}

.\!w-24 {
  width: 6rem !important;
}

.\!w-28 {
  width: 7rem !important;
}

.\!w-32 {
  width: 8rem !important;
}

.\!w-40 {
  width: 10rem !important;
}

.\!w-44 {
  width: 11rem !important;
}

.\!w-64 {
  width: 16rem !important;
}

.\!w-auto {
  width: auto !important;
}

.w-12 {
  width: 3rem;
}

.w-28 {
  width: 7rem;
}

.w-32 {
  width: 8rem;
}

.w-40 {
  width: 10rem;
}

.w-60 {
  width: 15rem;
}

.w-64 {
  width: 16rem;
}

.w-9 {
  width: 2.25rem;
}

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

.w-\[calc\(100vw-2rem\)\] {
  width: calc(100vw - 2rem);
}

.w-full {
  width: 100%;
}

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

.min-w-\[176px\] {
  min-width: 176px;
}

.min-w-max {
  min-width: -moz-max-content;
  min-width: max-content;
}

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

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

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

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

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

.max-w-\[54ch\] {
  max-width: 54ch;
}

.max-w-md {
  max-width: 28rem;
}

.max-w-sm {
  max-width: 24rem;
}

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

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

.border-collapse {
  border-collapse: collapse;
}

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

.animate-spin {
  animation: spin 1s linear infinite;
}

.cursor-pointer {
  cursor: pointer;
}

.list-none {
  list-style-type: none;
}

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

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

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

.flex-nowrap {
  flex-wrap: nowrap;
}

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

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

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

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

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

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

.\!justify-start {
  justify-content: flex-start !important;
}

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

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

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

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

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

.gap-0\.5 {
  gap: 0.125rem;
}

.gap-1 {
  gap: 0.25rem;
}

.gap-1\.5 {
  gap: 0.375rem;
}

.gap-12 {
  gap: 3rem;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-2\.5 {
  gap: 0.625rem;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-3\.5 {
  gap: 0.875rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-5 {
  gap: 1.25rem;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-7 {
  gap: 1.75rem;
}

.gap-8 {
  gap: 2rem;
}

.gap-\[3px\] {
  gap: 3px;
}

.gap-px {
  gap: 1px;
}

.gap-x-10 {
  -moz-column-gap: 2.5rem;
       column-gap: 2.5rem;
}

.gap-y-3 {
  row-gap: 0.75rem;
}

.justify-self-start {
  justify-self: start;
}

.overflow-hidden {
  overflow: hidden;
}

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

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

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

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

.whitespace-normal {
  white-space: normal;
}

.whitespace-nowrap {
  white-space: nowrap;
}

.break-all {
  word-break: break-all;
}

.\!rounded-none {
  border-radius: 0px !important;
}

.rounded {
  border-radius: 8px;
}

.rounded-badge {
  border-radius: 6px;
}

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

.rounded-lg {
  border-radius: 12px;
}

.\!border-0 {
  border-width: 0px !important;
}

.border {
  border-width: 1px;
}

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

.border-y {
  border-top-width: 1px;
  border-bottom-width: 1px;
}

.border-b {
  border-bottom-width: 1px;
}

.border-b-2 {
  border-bottom-width: 2px;
}

.border-l-\[3px\] {
  border-left-width: 3px;
}

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

.border-brick {
  --tw-border-opacity: 1;
  border-color: rgb(143 68 54 / var(--tw-border-opacity, 1));
}

.border-clay {
  --tw-border-opacity: 1;
  border-color: rgb(169 116 60 / var(--tw-border-opacity, 1));
}

.border-crit-br {
  --tw-border-opacity: 1;
  border-color: rgb(216 187 178 / var(--tw-border-opacity, 1));
}

.border-current {
  border-color: currentColor;
}

.border-ink {
  --tw-border-opacity: 1;
  border-color: rgb(27 30 28 / var(--tw-border-opacity, 1));
}

.border-moss {
  --tw-border-opacity: 1;
  border-color: rgb(78 107 79 / var(--tw-border-opacity, 1));
}

.border-notice-br {
  --tw-border-opacity: 1;
  border-color: rgb(183 202 205 / var(--tw-border-opacity, 1));
}

.border-ok-br {
  --tw-border-opacity: 1;
  border-color: rgb(189 203 188 / var(--tw-border-opacity, 1));
}

.border-petrol {
  --tw-border-opacity: 1;
  border-color: rgb(46 90 99 / var(--tw-border-opacity, 1));
}

.border-rule {
  --tw-border-opacity: 1;
  border-color: rgb(205 206 198 / var(--tw-border-opacity, 1));
}

.border-rule-soft {
  --tw-border-opacity: 1;
  border-color: rgb(222 223 216 / var(--tw-border-opacity, 1));
}

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

.border-warn-br {
  --tw-border-opacity: 1;
  border-color: rgb(218 198 168 / var(--tw-border-opacity, 1));
}

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

.\!bg-transparent {
  background-color: transparent !important;
}

.bg-crit-bg {
  --tw-bg-opacity: 1;
  background-color: rgb(238 220 215 / var(--tw-bg-opacity, 1));
}

.bg-current {
  background-color: currentColor;
}

.bg-ground {
  --tw-bg-opacity: 1;
  background-color: rgb(234 234 229 / var(--tw-bg-opacity, 1));
}

.bg-ink {
  --tw-bg-opacity: 1;
  background-color: rgb(27 30 28 / var(--tw-bg-opacity, 1));
}

.bg-ink\/55 {
  background-color: rgb(27 30 28 / 0.55);
}

.bg-mute-bg {
  --tw-bg-opacity: 1;
  background-color: rgb(226 227 221 / var(--tw-bg-opacity, 1));
}

.bg-notice-bg {
  --tw-bg-opacity: 1;
  background-color: rgb(220 229 230 / var(--tw-bg-opacity, 1));
}

.bg-ok-bg {
  --tw-bg-opacity: 1;
  background-color: rgb(222 230 220 / var(--tw-bg-opacity, 1));
}

.bg-paper {
  --tw-bg-opacity: 1;
  background-color: rgb(245 245 241 / var(--tw-bg-opacity, 1));
}

.bg-petrol {
  --tw-bg-opacity: 1;
  background-color: rgb(46 90 99 / var(--tw-bg-opacity, 1));
}

.bg-rule-soft {
  --tw-bg-opacity: 1;
  background-color: rgb(222 223 216 / var(--tw-bg-opacity, 1));
}

.bg-transparent {
  background-color: transparent;
}

.bg-warn-bg {
  --tw-bg-opacity: 1;
  background-color: rgb(239 229 213 / var(--tw-bg-opacity, 1));
}

.p-0 {
  padding: 0px;
}

.p-1 {
  padding: 0.25rem;
}

.p-4 {
  padding: 1rem;
}

.p-5 {
  padding: 1.25rem;
}

.\!px-0 {
  padding-left: 0px !important;
  padding-right: 0px !important;
}

.\!px-1 {
  padding-left: 0.25rem !important;
  padding-right: 0.25rem !important;
}

.\!px-1\.5 {
  padding-left: 0.375rem !important;
  padding-right: 0.375rem !important;
}

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

.\!py-0\.5 {
  padding-top: 0.125rem !important;
  padding-bottom: 0.125rem !important;
}

.\!py-1 {
  padding-top: 0.25rem !important;
  padding-bottom: 0.25rem !important;
}

.px-1\.5 {
  padding-left: 0.375rem;
  padding-right: 0.375rem;
}

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

.px-2\.5 {
  padding-left: 0.625rem;
  padding-right: 0.625rem;
}

.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;
}

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

.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.py-1\.5 {
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
}

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

.py-14 {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

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

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

.py-2\.5 {
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
}

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

.py-3\.5 {
  padding-top: 0.875rem;
  padding-bottom: 0.875rem;
}

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

.py-5 {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.py-6 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

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

.pb-0\.5 {
  padding-bottom: 0.125rem;
}

.pb-1\.5 {
  padding-bottom: 0.375rem;
}

.pb-2 {
  padding-bottom: 0.5rem;
}

.pb-2\.5 {
  padding-bottom: 0.625rem;
}

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

.pb-32 {
  padding-bottom: 8rem;
}

.pb-4 {
  padding-bottom: 1rem;
}

.pb-\[max\(1\.5rem\2c env\(safe-area-inset-bottom\)\)\] {
  padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
}

.pl-3 {
  padding-left: 0.75rem;
}

.pl-4 {
  padding-left: 1rem;
}

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

.pt-2 {
  padding-top: 0.5rem;
}

.pt-2\.5 {
  padding-top: 0.625rem;
}

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

.pt-5 {
  padding-top: 1.25rem;
}

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

.pt-\[3px\] {
  padding-top: 3px;
}

.\!text-left {
  text-align: left !important;
}

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

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

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

.align-top {
  vertical-align: top;
}

.align-middle {
  vertical-align: middle;
}

.font-mono {
  font-family: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

.font-sans {
  font-family: "Familjen Grotesk", -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", "Heiti TC", sans-serif;
}

.\!text-\[14px\] {
  font-size: 14px !important;
}

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

.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}

.text-4xl {
  font-size: 2.25rem;
  line-height: 2.5rem;
}

.text-5xl {
  font-size: 3rem;
  line-height: 1;
}

.text-\[10\.5px\] {
  font-size: 10.5px;
}

.text-\[10px\] {
  font-size: 10px;
}

.text-\[11px\] {
  font-size: 11px;
}

.text-\[12\.5px\] {
  font-size: 12.5px;
}

.text-\[12px\] {
  font-size: 12px;
}

.text-\[13\.5px\] {
  font-size: 13.5px;
}

.text-\[13px\] {
  font-size: 13px;
}

.text-\[14\.5px\] {
  font-size: 14.5px;
}

.text-\[14px\] {
  font-size: 14px;
}

.text-\[15px\] {
  font-size: 15px;
}

.text-\[17px\] {
  font-size: 17px;
}

.text-\[19px\] {
  font-size: 19px;
}

.text-\[21px\] {
  font-size: 21px;
}

.text-data {
  font-size: 19px;
  line-height: 1.3;
}

.text-data-lg {
  font-size: 30px;
  line-height: 1.3;
  letter-spacing: -.03em;
}

.text-data-xl {
  font-size: 44px;
  line-height: 1;
  letter-spacing: -.04em;
}

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

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

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

.\!font-semibold {
  font-weight: 600 !important;
}

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

.font-light {
  font-weight: 300;
}

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

.font-normal {
  font-weight: 400;
}

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

.uppercase {
  text-transform: uppercase;
}

.leading-none {
  line-height: 1;
}

.leading-normal {
  line-height: 1.5;
}

.leading-relaxed {
  line-height: 1.625;
}

.tracking-\[\.16em\] {
  letter-spacing: .16em;
}

.tracking-\[\.1em\] {
  letter-spacing: .1em;
}

.tracking-tight {
  letter-spacing: -0.025em;
}

.tracking-tighter {
  letter-spacing: -0.05em;
}

.text-brick {
  --tw-text-opacity: 1;
  color: rgb(143 68 54 / var(--tw-text-opacity, 1));
}

.text-clay {
  --tw-text-opacity: 1;
  color: rgb(169 116 60 / var(--tw-text-opacity, 1));
}

.text-crit-fg {
  --tw-text-opacity: 1;
  color: rgb(110 50 39 / var(--tw-text-opacity, 1));
}

.text-ink {
  --tw-text-opacity: 1;
  color: rgb(27 30 28 / var(--tw-text-opacity, 1));
}

.text-ink-2 {
  --tw-text-opacity: 1;
  color: rgb(74 79 75 / var(--tw-text-opacity, 1));
}

.text-ink-3 {
  --tw-text-opacity: 1;
  color: rgb(122 128 123 / var(--tw-text-opacity, 1));
}

.text-moss {
  --tw-text-opacity: 1;
  color: rgb(78 107 79 / var(--tw-text-opacity, 1));
}

.text-mute-fg {
  --tw-text-opacity: 1;
  color: rgb(90 96 91 / var(--tw-text-opacity, 1));
}

.text-notice-fg {
  --tw-text-opacity: 1;
  color: rgb(35 74 82 / var(--tw-text-opacity, 1));
}

.text-ok-fg {
  --tw-text-opacity: 1;
  color: rgb(55 80 58 / var(--tw-text-opacity, 1));
}

.text-paper {
  --tw-text-opacity: 1;
  color: rgb(245 245 241 / var(--tw-text-opacity, 1));
}

.text-paper-2 {
  --tw-text-opacity: 1;
  color: rgb(253 253 251 / var(--tw-text-opacity, 1));
}

.text-paper\/55 {
  color: rgb(245 245 241 / 0.55);
}

.text-paper\/75 {
  color: rgb(245 245 241 / 0.75);
}

.text-warn-fg {
  --tw-text-opacity: 1;
  color: rgb(122 82 39 / var(--tw-text-opacity, 1));
}

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

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

.opacity-40 {
  opacity: 0.4;
}

.opacity-80 {
  opacity: 0.8;
}

.shadow-lg {
  --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px 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);
}

.outline {
  outline-style: solid;
}

.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-2 {
  --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);
}

.ring-paper {
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(245 245 241 / var(--tw-ring-opacity, 1));
}

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

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

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

.transition-opacity {
  transition-property: opacity;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-transform {
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

/* 表格異常列的左側色條——不用整列上底色（規則 A7） */

.flag-warn {
  box-shadow: inset 3px 0 0 #A9743C;
}

.flag-crit {
  box-shadow: inset 3px 0 0 #8F4436;
}

/*
 * 這個檔案刻意保持極短。
 *
 * 元件樣式一律寫在 templates/cotton/*.html 的 class 屬性裡，不在此用 @apply 另立一套——
 * Tool-web 的 main.css 有 837 行 @apply，結果 .text-secondary 與 tailwind.config 的
 * secondary 是兩個不同顏色。單一來源就不會有這種事。
 *
 * 下面只放「無法用 utility 表達」的東西。
 */

.\[\&_td\.num\]\:font-mono td.num {
  font-variant-numeric: tabular-nums;
}

.marker\:content-none *::marker {
  --tw-content: none;
  content: var(--tw-content);
}

.marker\:content-none::marker {
  --tw-content: none;
  content: var(--tw-content);
}

.backdrop\:bg-ink\/40::backdrop {
  background-color: rgb(27 30 28 / 0.4);
}

.open\:grid[open] {
  display: grid;
}

.hover\:border-ink-2:hover {
  --tw-border-opacity: 1;
  border-color: rgb(74 79 75 / var(--tw-border-opacity, 1));
}

.hover\:bg-crit-bg:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(238 220 215 / var(--tw-bg-opacity, 1));
}

.hover\:bg-ground:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(234 234 229 / var(--tw-bg-opacity, 1));
}

.hover\:bg-ink-hover:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(44 49 45 / var(--tw-bg-opacity, 1));
}

.hover\:bg-mute-bg:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(226 227 221 / var(--tw-bg-opacity, 1));
}

.hover\:bg-paper-2:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(253 253 251 / var(--tw-bg-opacity, 1));
}

.hover\:bg-petrol-hover:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(36 72 79 / var(--tw-bg-opacity, 1));
}

.hover\:text-ink:hover {
  --tw-text-opacity: 1;
  color: rgb(27 30 28 / var(--tw-text-opacity, 1));
}

.hover\:text-ink-2:hover {
  --tw-text-opacity: 1;
  color: rgb(74 79 75 / var(--tw-text-opacity, 1));
}

.hover\:text-paper:hover {
  --tw-text-opacity: 1;
  color: rgb(245 245 241 / var(--tw-text-opacity, 1));
}

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

.focus-visible\:bg-ground:focus-visible {
  --tw-bg-opacity: 1;
  background-color: rgb(234 234 229 / var(--tw-bg-opacity, 1));
}

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

.focus-visible\:outline:focus-visible {
  outline-style: solid;
}

.focus-visible\:outline-2:focus-visible {
  outline-width: 2px;
}

.focus-visible\:-outline-offset-2:focus-visible {
  outline-offset: -2px;
}

.focus-visible\:outline-offset-2:focus-visible {
  outline-offset: 2px;
}

.focus-visible\:outline-offset-\[3px\]:focus-visible {
  outline-offset: 3px;
}

.focus-visible\:outline-paper:focus-visible {
  outline-color: #F5F5F1;
}

.focus-visible\:outline-petrol:focus-visible {
  outline-color: #2E5A63;
}

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

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

@media (prefers-reduced-motion: reduce) {
  .motion-reduce\:\[animation-duration\:2\.5s\] {
    animation-duration: 2.5s;
  }
}

@media (min-width: 640px) {
  .sm\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .md\:sticky {
    position: sticky;
  }

  .md\:bottom-auto {
    bottom: auto;
  }

  .md\:right-5 {
    right: 1.25rem;
  }

  .md\:top-0 {
    top: 0px;
  }

  .md\:top-5 {
    top: 1.25rem;
  }

  .md\:block {
    display: block;
  }

  .md\:\!flex {
    display: flex !important;
  }

  .md\:h-dvh {
    height: 100dvh;
  }

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

  .md\:flex-row {
    flex-direction: row;
  }

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

  .md\:gap-0\.5 {
    gap: 0.125rem;
  }

  .md\:gap-4 {
    gap: 1rem;
  }

  .md\:overflow-visible {
    overflow: visible;
  }

  .md\:border-b-0 {
    border-bottom-width: 0px;
  }

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

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

  .md\:border-rule-soft {
    --tw-border-opacity: 1;
    border-color: rgb(222 223 216 / var(--tw-border-opacity, 1));
  }

  .md\:p-6 {
    padding: 1.5rem;
  }

  .md\:px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .md\:py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .md\:py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .md\:pb-4 {
    padding-bottom: 1rem;
  }

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

@media (min-width: 1024px) {
  .lg\:grid-cols-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.\[\&\:\:-webkit-details-marker\]\:hidden::-webkit-details-marker {
  display: none;
}

.\[\&\[open\]\>summary\>svg\]\:text-ink[open]>summary>svg {
  --tw-text-opacity: 1;
  color: rgb(27 30 28 / var(--tw-text-opacity, 1));
}

.\[\&\[open\]\>summary\]\:bg-ink[open]>summary {
  --tw-bg-opacity: 1;
  background-color: rgb(27 30 28 / var(--tw-bg-opacity, 1));
}

.\[\&\[open\]\>summary\]\:text-paper[open]>summary {
  --tw-text-opacity: 1;
  color: rgb(245 245 241 / var(--tw-text-opacity, 1));
}

.\[\&_td\.num\]\:pr-5 td.num {
  padding-right: 1.25rem;
}

.\[\&_td\.num\]\:text-right td.num {
  text-align: right;
}

.\[\&_td\.num\]\:font-mono td.num {
  font-family: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

.\[\&_td\]\:border-b td {
  border-bottom-width: 1px;
}

.\[\&_td\]\:border-rule-soft td {
  --tw-border-opacity: 1;
  border-color: rgb(222 223 216 / var(--tw-border-opacity, 1));
}

.\[\&_td\]\:px-4 td {
  padding-left: 1rem;
  padding-right: 1rem;
}

.\[\&_td\]\:py-3 td {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.\[\&_td\]\:align-middle td {
  vertical-align: middle;
}

.\[\&_th\.num\]\:pr-5 th.num {
  padding-right: 1.25rem;
}

.\[\&_th\.num\]\:text-right th.num {
  text-align: right;
}

.\[\&_th\]\:whitespace-nowrap th {
  white-space: nowrap;
}

.\[\&_th\]\:border-b th {
  border-bottom-width: 1px;
}

.\[\&_th\]\:border-rule th {
  --tw-border-opacity: 1;
  border-color: rgb(205 206 198 / var(--tw-border-opacity, 1));
}

.\[\&_th\]\:bg-ground th {
  --tw-bg-opacity: 1;
  background-color: rgb(234 234 229 / var(--tw-bg-opacity, 1));
}

.\[\&_th\]\:px-4 th {
  padding-left: 1rem;
  padding-right: 1rem;
}

.\[\&_th\]\:py-2\.5 th {
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
}

.\[\&_th\]\:text-left th {
  text-align: left;
}

.\[\&_th\]\:text-\[12px\] th {
  font-size: 12px;
}

.\[\&_th\]\:font-semibold th {
  font-weight: 600;
}

.\[\&_th\]\:tracking-\[\.04em\] th {
  letter-spacing: .04em;
}

.\[\&_th\]\:text-ink-2 th {
  --tw-text-opacity: 1;
  color: rgb(74 79 75 / var(--tw-text-opacity, 1));
}

.\[\&_tr\:hover_td\]\:bg-paper-2 tr:hover td {
  --tw-bg-opacity: 1;
  background-color: rgb(253 253 251 / var(--tw-bg-opacity, 1));
}

.\[\&_tr\:last-child_td\]\:border-b-0 tr:last-child td {
  border-bottom-width: 0px;
}
