*, ::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: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  /* 4 */
  font-feature-settings: normal;
  /* 5 */
  font-variation-settings: normal;
  /* 6 */
  -webkit-tap-highlight-color: transparent;
  /* 7 */
}

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

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

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

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

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

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

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

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

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

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

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

b,
strong {
  font-weight: bolder;
}

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

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

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

small {
  font-size: 80%;
}

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

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

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

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

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

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

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

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

button,
select {
  text-transform: none;
}

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

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

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

:-moz-focusring {
  outline: auto;
}

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

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

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

progress {
  vertical-align: baseline;
}

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

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

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

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

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

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

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

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

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

summary {
  display: list-item;
}

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

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

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

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

/*
Reset default styling for dialogs.
*/

dialog {
  padding: 0;
}

/*
Prevent resizing textareas horizontally by default.
*/

textarea {
  resize: vertical;
}

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

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

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

/*
Set the default cursor for buttons.
*/

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

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

:disabled {
  cursor: default;
}

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

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

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

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

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

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

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

.static {
  position: static;
}

.block {
  display: block;
}

.inline {
  display: inline;
}

.flex {
  display: flex;
}

.table {
  display: table;
}

.hidden {
  display: none;
}

.h-16 {
  height: 4rem;
}

.h-6 {
  height: 1.5rem;
}

.w-6 {
  width: 1.5rem;
}

.w-full {
  width: 100%;
}

.resize {
  resize: both;
}

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

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

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

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

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

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

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

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

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

body {
  min-height: 100vh;
  background: #ffffff;
}

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

/* ===== ヘッダー ===== */

header {
  background: transparent;
}

.site-nav {
  background: rgba(245, 250, 255, 0.92);
  border-bottom: 1px solid #d8eafe;
  backdrop-filter: blur(12px);
}

.nav-brand,
.nav-link,
.nav-toggle {
  color: #0f2a44;
}

.nav-brand,
.nav-link {
  text-decoration: none;
}

.nav-link {
  border-radius: 999px;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.nav-link:hover {
  background: #eaf4ff;
  color: #2563eb;
}

.site-footer {
  background: #2c3e50;
  color: #fff;
  text-align: center;
  padding: 20px 10px;
  margin-top: 40px;
  & .footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  & .footer-logo {
    width: 100px;
    height: auto;
    opacity: 0.9;
    transition: opacity 0.2s;
    &:hover {
      opacity: 1.0;
    }
  }
  & p {
    margin: 0;
    font-size: 14px;
  }
}

.breadcrumbs {
  margin: 14px auto 10px;
  padding: 0 4px;
  & ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    font-size: 13px;
    line-height: 1.4;
  }
  & li {
    display: inline-flex;
    align-items: center;
    color: #607d8b;
  }
  & li + li::before {
    content: ">";
    margin: 0 8px;
    color: #9eabb4;
    font-weight: 600;
  }
}

.breadcrumbs a {
  color: #546e7a;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.breadcrumbs a:hover {
  color: #1976d2;
  border-bottom-color: #1976d2;
  text-decoration: none;
}

.breadcrumbs li[aria-current="page"] {
  color: #263238;
  font-weight: 700;
}

.team_competitions.index,
.team_competitions.new,
.team_competitions.create,
.team_competitions.edit,
.team_competitions.update,
.matches.index,
.matches.new,
.matches.create,
.matches.edit,
.matches.update,
.comments.index,
.team_competition_comments.index,
.team_area_accesses.new,
.team_area_accesses.create,
.admin_accesses.new,
.admin_accesses.create,
.seasons.index,
.seasons.new,
.seasons.create,
.seasons.edit,
.seasons.update {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  background: #f5faff;
  color: #172033;
  & main {
    flex: 1;
    width: 100%;
    padding: 0 0 56px;
  }
  & .board-page {
    width: min(calc(100% - 48px), 960px);
    margin: 0 auto;
  }
  & .board-page-header {
    padding: 32px 0 24px;
    border-bottom: 3px solid #2563eb;
  }
  & .board-page-kicker {
    margin: 0 0 8px;
    color: #2563eb;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
  }
  & h1 {
    margin: 0;
    color: #0f2a44;
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.01em;
    overflow-wrap: anywhere;
  }
  & .board-page-description {
    max-width: 68ch;
    margin: 12px 0 0;
    color: #64748b;
    font-size: 15px;
    line-height: 1.8;
  }
  & .page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0 32px;
  }
  & .page-action-form,
    & .inline-action-form {
    display: inline-flex;
    margin: 0;
  }
  & .page-action-btn {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 9px 16px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  }
  & .page-action-btn.is-primary {
    background: #2563eb;
    color: #fff;
  }
  & .page-action-btn.is-primary:hover {
    background: #1d4ed8;
  }
  & .page-action-btn.is-secondary {
    border-color: #d8eafe;
    background: #fff;
    color: #0f2a44;
  }
  & .page-action-btn.is-secondary:hover {
    border-color: #2563eb;
    color: #2563eb;
  }
  & .page-action-btn.is-admin {
    border-color: #bfdbfe;
    background: #eaf4ff;
    color: #1e40af;
  }
  & .page-action-btn.is-admin:hover {
    border-color: #2563eb;
    background: #dbeafe;
  }
  & a:focus-visible,
    & button:focus-visible,
    & summary:focus-visible,
    & textarea:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.35);
    outline-offset: 3px;
  }
  & .breadcrumbs {
    padding-top: 14px;
  }
  & .board-form-page {
    max-width: 760px;
  }
  & .board-form {
    display: grid;
    gap: 22px;
    margin: 32px auto 0;
    padding: 24px;
    border: 1px solid #d8eafe;
    border-radius: 10px;
    background: #fff;
  }
  & .form-field {
    display: grid;
    gap: 7px;
    min-width: 0;
  }
  & .form-field > label,
    & .board-form > label {
    color: #0f2a44;
    font-size: 14px;
    font-weight: 700;
  }
  & .board-form input[type="text"],
    & .board-form input[type="password"],
    & .board-form input[type="date"],
    & .board-form input[type="number"],
    & .board-form select {
    width: 100%;
    min-height: 44px;
    box-sizing: border-box;
    padding: 9px 11px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: #fff;
    color: #172033;
    font: inherit;
  }
  & .board-form input::-moz-placeholder {
    color: #94a3b8;
  }
  & .board-form input::placeholder {
    color: #94a3b8;
  }
  & .board-form input:focus-visible,
    & .board-form select:focus-visible {
    border-color: #2563eb;
    outline: 3px solid rgba(37, 99, 235, 0.2);
    outline-offset: 1px;
  }
  & .form-actions {
    display: flex;
    justify-content: flex-end;
  }
  & .form-errors {
    padding: 0.75rem 1rem;
    border: 1px solid #fca5a5;
    border-radius: 0.5rem;
    color: #991b1b;
    background: #fef2f2;
    font-weight: 700;
  }
  & .form-submit {
    min-height: 44px;
    padding: 9px 18px;
    border: 1px solid #2563eb;
    border-radius: 8px;
    background: #2563eb;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
  }
  & .form-submit:hover {
    border-color: #1d4ed8;
    background: #1d4ed8;
  }
  & .field_with_errors {
    display: contents;
  }
  & .field_with_errors input,
    & .field_with_errors select {
    border-color: #dc2626;
  }
}

@media (max-width: 767px) {
  .team_competitions.index,
    .team_competitions.new,
    .team_competitions.create,
    .team_competitions.edit,
    .team_competitions.update,
    .matches.index,
    .matches.new,
    .matches.create,
    .matches.edit,
    .matches.update,
    .comments.index,
    .team_competition_comments.index,
    .team_area_accesses.new,
    .team_area_accesses.create,
    .admin_accesses.new,
    .admin_accesses.create,
    .seasons.index,
    .seasons.new,
    .seasons.create,
    .seasons.edit,
    .seasons.update {
    & main {
      padding-bottom: 36px;
    }
    & .board-page {
      width: min(calc(100% - 24px), 960px);
    }
    & .board-page-header {
      padding: 24px 0 20px;
    }
    & .page-actions {
      display: grid;
      grid-template-columns: 1fr;
      margin: 20px 0 28px;
    }
    & .page-action-form,
        & .page-action-btn {
      width: 100%;
    }
    & .board-form {
      gap: 18px;
      margin-top: 24px;
      padding: 18px 14px;
    }
    & .form-actions,
        & .form-submit {
      width: 100%;
    }
  }
}

.matches.index {
  & .team-comment-link,
    & .match-score-details,
    & .match-list {
    width: min(100%, 760px);
    margin-right: auto;
    margin-left: auto;
  }
  & .team-comment-link {
    margin-bottom: 12px;
    text-align: right;
  }
  & .team-comment-link a {
    display: inline-flex;
    align-items: center;
    color: #2563eb;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
  }
  & .team-comment-link a::after {
    content: "→";
    margin-left: 6px;
  }
  & .match-score-details {
    margin-bottom: 28px;
  }
  & .competition-summary {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    padding: 18px 48px 18px 20px;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    background: #eaf4ff;
    cursor: pointer;
    list-style: none;
  }
  & .competition-summary::-webkit-details-marker {
    display: none;
  }
  & .score-block,
    & .remaining-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  & .remaining-block {
    align-items: flex-end;
    text-align: right;
  }
  & .summary-label {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
  }
  & .competition-summary .score {
    color: #0f2a44;
    font-size: 38px;
    font-weight: 800;
    line-height: 1;
  }
  & .competition-summary .remaining {
    color: #172033;
    font-size: 22px;
    font-weight: 800;
  }
  & .score-toggle {
    position: absolute;
    top: 50%;
    right: 18px;
    color: #2563eb;
    transform: translateY(-50%);
  }
  & .score-toggle-closed {
    display: none;
  }
  & .match-score-details:not([open]) .score-toggle-open {
    display: none;
  }
  & .match-score-details:not([open]) .score-toggle-closed {
    display: inline;
  }
  & .match-score-details[open] .competition-summary {
    border-radius: 10px 10px 0 0;
  }
  & .match-score-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 24px;
    padding: 10px 20px;
    border: 1px solid #d8eafe;
    border-top: 0;
    border-radius: 0 0 10px 10px;
    background: #fff;
  }
  & .match-score-row {
    display: grid;
    grid-template-columns: auto minmax(70px, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 9px 0;
    border-bottom: 1px solid #eaf4ff;
    color: #64748b;
    font-size: 13px;
  }
  & .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #94a3b8;
  }
  & .status-dot.is-live {
    background: #94a3b8;
  }
  & .status-dot.is-win {
    background: #2563eb;
  }
  & .status-dot.is-loss {
    background: #b91c1c;
  }
  & .match-score-name {
    min-width: 0;
    color: #172033;
    font-weight: 700;
    overflow-wrap: anywhere;
  }
  & .match-score-value {
    color: #172033;
    font-weight: 800;
    white-space: nowrap;
  }
  & .match-list {
    display: grid;
    gap: 16px;
  }
  & .match-card {
    padding: 18px 20px;
    border: 1px solid #d8eafe;
    border-left: 5px solid #94a3b8;
    border-radius: 10px;
    background: #fff;
  }
  & .match-card.is-live-card {
    border-left-color: #94a3b8;
  }
  & .match-card.is-win-card {
    border-left-color: #2563eb;
    background: #f8fbff;
  }
  & .match-card.is-loss-card {
    border-left-color: #b91c1c;
    background: #fffafa;
  }
  & .match-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
  }
  & .round {
    margin: 0;
    color: #0f2a44;
    font-size: 18px;
    font-weight: 800;
    overflow-wrap: anywhere;
  }
  & .status {
    flex-shrink: 0;
    padding: 5px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #f8fafc;
    color: #475569;
    font-size: 12px;
    font-weight: 800;
  }
  & .status.is-live {
    border-color: #cbd5e1;
    background: #fff;
    color: #475569;
  }
  & .status.is-win {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
  }
  & .status.is-loss {
    border-color: #fecaca;
    background: #fef2f2;
    color: #b91c1c;
  }
  & .score-table {
    width: 100%;
    margin-bottom: 16px;
    border-collapse: collapse;
    table-layout: fixed;
  }
  & .score-table th,
    & .score-table td {
    padding: 8px 6px;
    border-bottom: 1px solid #eaf4ff;
    text-align: center;
  }
  & .score-table .player-flag {
    width: 96px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    overflow-wrap: anywhere;
  }
  & .score-table .player-name {
    color: #172033;
    font-weight: 700;
    text-align: left;
    overflow-wrap: anywhere;
  }
  & .score-table .set-score {
    width: 42px;
    color: #0f2a44;
    font-size: 18px;
    font-weight: 800;
  }
  & .match-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
  }
  & .match-footer a,
    & .match-footer button {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
  }
  & .btn-comment {
    border: 1px solid #2563eb;
    background: #2563eb;
    color: #fff;
  }
  & .btn-edit {
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1e40af;
  }
  & .btn-delete {
    border: 1px solid #fecaca;
    background: #fff;
    color: #b91c1c;
  }
  @media (max-width: 767px) {
    & .team-comment-link,
        & .match-score-details,
        & .match-list {
      width: 100%;
    }

    & .competition-summary {
      grid-template-columns: 1fr;
      padding: 16px 42px 16px 16px;
    }

    & .remaining-block {
      align-items: flex-start;
      text-align: left;
    }

    & .match-score-list {
      grid-template-columns: 1fr;
      padding: 8px 14px;
    }

    & .match-score-row {
      grid-template-columns: auto minmax(0, 1fr) auto;
    }

    & .match-score-value {
      grid-column: 3;
      min-width: 0;
      max-width: 10ch;
      overflow-wrap: anywhere;
      text-align: right;
      white-space: normal;
    }

    & .match-card {
      padding: 16px 12px;
    }

    & .match-header {
      align-items: flex-start;
    }

    & .score-table .player-flag {
      width: 64px;
    }

    & .score-table .set-score {
      width: 30px;
      padding-right: 2px;
      padding-left: 2px;
    }

    & .match-footer {
      justify-content: stretch;
    }

    & .match-footer a,
        & .match-footer form,
        & .match-footer button {
      flex: 1 1 auto;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .matches.index * {
    scroll-behavior: auto;
    transition-duration: 0.01ms;
  }
}

.home.index {
  --home-bg: #f5faff;
  --home-surface: #ffffff;
  --home-soft: #eaf4ff;
  --home-primary: #2563eb;
  --home-accent: #38bdf8;
  --home-deep: #0f2a44;
  --home-text: #172033;
  --home-muted: #64748b;
  --home-border: #d8eafe;
  background: var(--home-bg);
  color: var(--home-text);
}

body.home.index {
  background: var(--home-bg);
}

.home.index main {
  padding: 0;
}

.home.index .home-portal {
  width: 100%;
  padding-bottom: 48px;
}

.home.index .home-container {
  width: min(calc(100% - 48px), 1280px);
  margin: 0 auto;
}

.home.index .home-hero {
  padding: 72px 0 56px;
  background:
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.18), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%);
}

.home.index .home-hero-layout {
  display: block;
}

.home.index .home-hero-main {
  min-width: 0;
}

.home.index .home-eyebrow {
  margin: 0 0 18px;
  color: var(--home-primary);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.home.index .home-title {
  width: 100%;
  margin: 0;
  color: var(--home-deep);
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.home.index .home-title-line {
  display: block;
  width: 100%;
}

.home.index .home-title-line-top {
  font-size: clamp(2.4rem, 5vw, 4.8rem);
}

.home.index .home-title-line-bottom {
  font-size: clamp(3.6rem, 8vw, 7.2rem);
  letter-spacing: 0.015em;
}

.home.index .home-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.home.index .home-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.home.index .home-cta:hover,
.home.index .home-card-link:hover {
  transform: translateY(-1px);
}

.home.index .home-cta-primary {
  background: var(--home-primary);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.18);
}

.home.index .home-cta-primary:hover {
  background: #1f57d6;
}

.home.index .home-cta-secondary {
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--home-border);
  color: var(--home-deep);
}

.home.index .home-cta-secondary:hover {
  background: #ffffff;
  border-color: #bdd9ff;
}

.home.index .home-about,
.home.index .home-links {
  padding: 56px 0;
}

.home.index .home-about {
  background: var(--home-surface);
}

.home.index .home-links {
  background: linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%);
  border-top: 1px solid var(--home-border);
  border-bottom: 1px solid var(--home-border);
}

.home.index .home-about-layout,
.home.index .home-links-layout {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.home.index .home-section-intro {
  min-width: 0;
}

.home.index .home-section-label {
  margin: 0 0 10px;
  color: var(--home-primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home.index .home-section-intro h2 {
  margin: 0;
  color: var(--home-deep);
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  line-height: 1.18;
  font-weight: 800;
}

.home.index .home-section-note {
  max-width: 28ch;
  margin: 14px 0 0;
  color: var(--home-muted);
  line-height: 1.8;
}

.home.index .home-about-content {
  min-width: 0;
}

.home.index .home-about-body {
  display: grid;
  gap: 12px;
  max-width: 64ch;
}

.home.index .home-about-body p {
  margin: 0;
  color: var(--home-text);
  line-height: 1.9;
}

.home.index .home-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.home.index .home-tags li {
  padding: 9px 14px;
  border: 1px solid var(--home-border);
  border-radius: 999px;
  background: var(--home-soft);
  color: var(--home-deep);
  font-size: 0.95rem;
  font-weight: 700;
}

.home.index .home-link-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.home.index .home-link-block {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 24px 0;
  border-top: 1px solid var(--home-border);
}

.home.index .home-link-block:last-child {
  border-bottom: 1px solid var(--home-border);
}

.home.index .home-link-block-primary {
  border-top-color: rgba(37, 99, 235, 0.32);
}

.home.index .home-link-copy {
  min-width: 0;
}

.home.index .home-link-label {
  margin: 0 0 10px;
  color: var(--home-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.home.index .home-link-block h3 {
  margin: 0;
  color: var(--home-deep);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 800;
}

.home.index .home-link-block p {
  max-width: 46ch;
  margin: 10px 0 0;
  color: var(--home-muted);
  line-height: 1.75;
}

.home.index .home-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--home-soft);
  color: var(--home-primary);
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.home.index .home-card-link:hover {
  background: #d8ebff;
  color: #1f57d6;
}

.home.index .site-footer {
  margin-top: 0;
  background: var(--home-deep);
}

.home.index .footer-logo {
  display: none;
}

@media (max-width: 1023px) {
  .home.index .home-about-layout,
  .home.index .home-links-layout {
    grid-template-columns: 1fr;
  }

  .home.index .home-about-body,
  .home.index .home-link-block p,
  .home.index .home-section-note {
    max-width: none;
  }
}

@media (max-width: 767px) {
  .home.index .home-container {
    width: min(calc(100% - 24px), 1280px);
  }

  .home.index .home-hero {
    padding: 44px 0 36px;
  }

  .home.index .home-about,
  .home.index .home-links {
    padding: 40px 0;
  }

  .home.index .home-cta-group {
    flex-direction: column;
  }

  .home.index .home-link-block {
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: start;
    padding: 22px 0;
  }

  .home.index .home-cta,
  .home.index .home-card-link {
    width: 100%;
  }
}

.home.circle {
  background: #f5faff;
  color: #172033;
}

body.home.circle {
  background: #f5faff;
}

.home.circle main {
  padding: 0;
}

.home.circle .circle-page {
  width: 100%;
  padding-bottom: 48px;
}

.home.circle .circle-container {
  width: min(calc(100% - 48px), 1280px);
  margin: 0 auto;
}

.home.circle .circle-hero {
  padding: 72px 0 56px;
  background:
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.18), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%);
}

.home.circle .circle-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
  gap: 48px;
  align-items: end;
}

.home.circle .circle-hero-copy,
.home.circle .circle-section-intro,
.home.circle .circle-section-body {
  min-width: 0;
}

.home.circle .circle-hero-copy p {
  max-width: 34ch;
}

.home.circle .circle-eyebrow,
.home.circle .circle-section-label {
  color: #2563eb;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home.circle .circle-eyebrow {
  margin: 0 0 16px;
  font-size: 14px;
}

.home.circle .circle-hero h1 {
  margin: 0;
  color: #0f2a44;
  font-size: clamp(2.9rem, 6vw, 5.2rem);
  line-height: 1.02;
  font-weight: 800;
}

.home.circle .circle-hero p:last-child,
.home.circle .circle-hero p:nth-of-type(2) {
  margin: 20px 0 0;
  color: #4f6480;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.85;
}

.home.circle .circle-hero-summary {
  align-self: stretch;
  display: flex;
  align-items: end;
}

.home.circle .circle-stat-list {
  width: 100%;
  margin: 0;
  padding: 20px 0 0;
  border-top: 1px solid rgba(37, 99, 235, 0.18);
}

.home.circle .circle-stat-item {
  display: grid;
  grid-template-columns: minmax(88px, 108px) minmax(0, 1fr);
  gap: 20px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid rgba(37, 99, 235, 0.14);
}

.home.circle .circle-stat-item dt {
  margin: 0;
  color: #2563eb;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home.circle .circle-stat-item dd {
  margin: 0;
  color: #0f2a44;
  font-size: clamp(1.3rem, 2vw, 1.85rem);
  line-height: 1.3;
  font-weight: 700;
}

.home.circle .circle-section {
  padding: 56px 0;
  background: #ffffff;
}

.home.circle .circle-section-soft {
  background: #f8fbff;
  border-top: 1px solid #d8eafe;
  border-bottom: 1px solid #d8eafe;
}

.home.circle .circle-section-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

.home.circle .circle-section-intro,
.home.circle .circle-section-body {
  width: 100%;
}

.home.circle .circle-section-intro {
  padding-bottom: 24px;
  border-bottom: 2px solid #bfdbfe;
}

.home.circle .circle-section-label {
  margin: 0 0 10px;
  font-size: 13px;
}

.home.circle .circle-section-intro h2 {
  margin: 0;
  color: #0f2a44;
  font-size: clamp(1.95rem, 4vw, 2.7rem);
  line-height: 1.14;
  font-weight: 800;
}

.home.circle .circle-section-stack {
  display: grid;
  gap: 22px;
}

.home.circle .circle-section-body > p {
  max-width: 68ch;
  margin: 0;
  color: #172033;
  font-size: clamp(1.02rem, 1.45vw, 1.16rem);
  line-height: 1.85;
}

.home.circle .circle-members-overview {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding-top: 8px;
}

.home.circle .circle-member-chart-wrap {
  display: grid;
  gap: 18px;
  justify-items: center;
}

.home.circle .circle-member-chart {
  width: min(100%, 280px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #ffffff 0 45%, transparent 46%),
    conic-gradient(
      #2563eb 0 30%,
      #38bdf8 30% 50%,
      #7dd3fc 50% 80%,
      #0f2a44 80% 100%
    );
  box-shadow: inset 0 0 0 1px rgba(15, 42, 68, 0.06);
}

.home.circle .circle-member-chart span {
  display: grid;
  place-items: center;
  width: 42%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #ffffff;
  color: #0f2a44;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 800;
  text-align: center;
}

.home.circle .circle-member-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  margin: 0;
}

.home.circle .circle-member-summary div {
  padding-top: 12px;
  border-top: 1px solid #d8eafe;
}

.home.circle .circle-member-summary dt {
  color: #2563eb;
  font-size: 0.82rem;
  font-weight: 700;
}

.home.circle .circle-member-summary dd {
  margin: 4px 0 0;
  color: #0f2a44;
  font-size: 1.1rem;
  font-weight: 800;
}

.home.circle .circle-member-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home.circle .circle-member-legend-item {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: baseline;
  padding: 16px 0;
  border-top: 1px solid #d8eafe;
  color: #4f6480;
}

.home.circle .circle-member-legend-item strong {
  color: #0f2a44;
  font-size: 1.08rem;
}

.home.circle .circle-member-legend-item span:last-child {
  color: #172033;
  font-weight: 800;
}

.home.circle .circle-member-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.home.circle .circle-member-legend-experienced-men .circle-member-dot {
  background: #2563eb;
}

.home.circle .circle-member-legend-beginner-men .circle-member-dot {
  background: #38bdf8;
}

.home.circle .circle-member-legend-beginner-women .circle-member-dot {
  background: #7dd3fc;
}

.home.circle .circle-member-legend-experienced-women .circle-member-dot {
  background: #0f2a44;
}

.home.circle .circle-practice-types {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  width: 100%;
}

.home.circle .circle-practice-type {
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 28px 28px 30px;
  border-left: 4px solid #7dd3fc;
  background: #f8fbff;
}

.home.circle .circle-practice-type-main {
  border-left-color: #2563eb;
}

.home.circle .circle-practice-heading,
.home.circle .circle-practice-copy {
  min-width: 0;
}

.home.circle .circle-practice-type-label {
  display: block;
  margin: 0;
  color: #2563eb;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.home.circle .circle-practice-type h3 {
  margin: 10px 0 0;
  color: #0f2a44;
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  line-height: 1.18;
  font-weight: 800;
}

.home.circle .circle-practice-copy {
  display: grid;
  gap: 16px;
}

.home.circle .circle-practice-copy p {
  max-width: 68ch;
  margin: 0;
  color: #4f6480;
  font-size: clamp(1.02rem, 1.35vw, 1.12rem);
  line-height: 1.85;
}

.home.circle .circle-practice-notes,
.home.circle .circle-practice-seasons {
  display: grid;
  gap: 0;
  margin: 4px 0 0;
  padding: 0;
  border-top: 1px dashed #b8cee3;
}

.home.circle .circle-practice-notes {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home.circle .circle-practice-seasons {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home.circle .circle-practice-notes div,
.home.circle .circle-practice-seasons div {
  min-width: 0;
  padding: 14px 18px 0 0;
}

.home.circle .circle-practice-notes div + div,
.home.circle .circle-practice-seasons div + div {
  padding-left: 18px;
  border-left: 1px dashed #b8cee3;
}

.home.circle .circle-practice-notes dt,
.home.circle .circle-practice-seasons dt {
  color: #2563eb;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.home.circle .circle-practice-notes dd,
.home.circle .circle-practice-seasons dd {
  margin: 6px 0 0;
  color: #0f2a44;
  font-size: 0.95rem;
  line-height: 1.65;
  font-weight: 700;
}

.home.circle .circle-schedule-block {
  display: grid;
  gap: 14px;
}

.home.circle .circle-schedule-table-wrap {
  overflow-x: auto;
}

.home.circle .circle-schedule-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #dfe7ef;
  background: #ffffff;
}

.home.circle .circle-schedule-table th,
.home.circle .circle-schedule-table td {
  padding: 14px 10px;
  text-align: center;
  border-bottom: 1px solid #edf1f5;
}

.home.circle .circle-schedule-table thead th {
  background: #f1f5f9;
  color: #4f6480;
  font-size: 0.95rem;
  font-weight: 700;
  border-bottom-color: #cbd5e1;
}

.home.circle .circle-schedule-table tbody tr:last-child th,
.home.circle .circle-schedule-table tbody tr:last-child td {
  border-bottom: 0;
}

.home.circle .circle-schedule-table tbody th {
  color: #2563eb;
  font-size: 0.98rem;
  font-weight: 700;
  white-space: nowrap;
}

.home.circle .circle-schedule-table td {
  color: #0f2a44;
  font-size: 1.05rem;
  font-weight: 800;
}

.home.circle .circle-schedule-mark,
.home.circle .circle-schedule-limited,
.home.circle .circle-schedule-empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 34px;
  border-radius: 50%;
}

.home.circle .circle-schedule-mark {
  background: #eaf4ff;
  color: #2563eb;
}

.home.circle .circle-schedule-limited {
  background: #ffffff;
  border: 1px solid #d8eafe;
  color: #0f2a44;
}

.home.circle .circle-schedule-empty {
  color: #b7c5d6;
}

.home.circle .circle-schedule-mobile {
  display: none;
}

.home.circle .circle-time-note {
  display: grid;
  gap: 4px;
  max-width: 56ch;
  padding-top: 6px;
  color: #64748b;
  font-size: 0.86rem;
  line-height: 1.6;
}

.home.circle .circle-time-note p {
  margin: 0;
}

.home.circle .circle-event-list {
  display: grid;
  border-top: 1px solid #d8eafe;
}

.home.circle .circle-event {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: 36px 0;
  border-bottom: 1px solid #d8eafe;
}

.home.circle .circle-event-visual {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: #eaf4ff;
}

.home.circle .circle-event-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  -o-object-fit: cover;
     object-fit: cover;
}

.home.circle .circle-event-copy {
  min-width: 0;
}

.home.circle .circle-event-season {
  margin: 0 0 8px;
  color: #2563eb;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home.circle .circle-event-copy h3 {
  margin: 0;
  color: #0f2a44;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  line-height: 1.2;
  font-weight: 800;
}

.home.circle .circle-event-copy > p:last-child {
  max-width: 58ch;
  margin: 14px 0 0;
  color: #4f6480;
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  line-height: 1.85;
}

.home.circle .circle-link-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid #d8eafe;
}

.home.circle .circle-link-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 4px;
  border-bottom: 1px solid #d8eafe;
  color: #0f2a44;
  text-decoration: none;
  font-weight: 700;
  transition: padding-left 0.18s ease, color 0.18s ease;
}

.home.circle .circle-link-pill::after {
  content: "→";
  color: #2563eb;
  font-size: 1.2rem;
}

.home.circle .circle-link-pill:hover {
  padding-left: 10px;
  color: #2563eb;
}

@media (max-width: 1023px) {
  .home.circle .circle-hero-layout,
  .home.circle .circle-members-overview,
  .home.circle .circle-practice-type,
  .home.circle .circle-event {
    grid-template-columns: 1fr;
  }

  .home.circle .circle-stat-list,
  .home.circle .circle-hero-summary {
    padding-top: 0;
  }

  .home.circle .circle-hero-copy p,
  .home.circle .circle-practice-copy p,
  .home.circle .circle-event-copy > p:last-child {
    max-width: none;
  }
}

@media (max-width: 767px) {
  .home.circle .circle-container {
    width: min(calc(100% - 24px), 1280px);
  }

  .home.circle .circle-hero {
    padding: 44px 0 36px;
  }

  .home.circle .circle-section {
    padding: 40px 0;
  }

  .home.circle .circle-stat-item,
  .home.circle .circle-member-legend,
  .home.circle .circle-practice-notes,
  .home.circle .circle-practice-seasons {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .home.circle .circle-member-chart {
    width: min(100%, 240px);
  }

  .home.circle .circle-member-legend-item {
    grid-template-columns: 12px minmax(0, 1fr);
  }

  .home.circle .circle-member-legend-item span:last-child {
    grid-column: 2;
  }

  .home.circle .circle-practice-type {
    gap: 18px;
    padding: 22px 18px 24px;
  }

  .home.circle .circle-event {
    gap: 20px;
    padding: 28px 0;
  }

  .home.circle .circle-practice-notes div,
  .home.circle .circle-practice-seasons div {
    padding: 12px 0 0;
  }

  .home.circle .circle-practice-notes div + div,
  .home.circle .circle-practice-seasons div + div {
    padding-left: 0;
    border-left: 0;
    border-top: 1px dashed #b8cee3;
  }

  .home.circle .circle-schedule-table-wrap {
    display: none;
  }

  .home.circle .circle-schedule-mobile {
    display: grid;
    gap: 10px;
  }

  .home.circle .circle-schedule-mobile div {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    align-items: baseline;
    padding: 13px 0;
    border-top: 1px solid #dfe7ef;
  }

  .home.circle .circle-schedule-mobile div:last-child {
    border-bottom: 1px solid #dfe7ef;
  }

  .home.circle .circle-schedule-mobile span {
    color: #2563eb;
    font-weight: 800;
  }

  .home.circle .circle-schedule-mobile strong {
    color: #0f2a44;
  }

  .home.circle .circle-schedule-mobile small {
    margin-left: 0.35em;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 700;
  }

  .home.circle .circle-section-intro {
    padding-bottom: 18px;
  }
}

.comments.index,
.team_competition_comments.index {
  & .comment-page {
    width: min(calc(100% - 48px), 760px);
  }
  & .comment-thread {
    display: grid;
    gap: 18px;
  }
  & .match-card,
    & .team-score-panel {
    padding: 18px 20px;
    border: 1px solid #d8eafe;
    border-radius: 10px;
    background: #fff;
  }
  & .match-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
  }
  & .round {
    margin: 0;
    color: #0f2a44;
    font-size: 18px;
    font-weight: 800;
    overflow-wrap: anywhere;
  }
  & .status {
    flex-shrink: 0;
    padding: 5px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #f8fafc;
    color: #475569;
    font-size: 12px;
    font-weight: 800;
  }
  & .status.is-live {
    border-color: #cbd5e1;
    background: #fff;
    color: #475569;
  }
  & .status.is-win {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
  }
  & .status.is-loss {
    border-color: #fecaca;
    background: #fef2f2;
    color: #b91c1c;
  }
  & .score-table {
    width: 100%;
    margin-bottom: 16px;
    border-collapse: collapse;
    table-layout: fixed;
  }
  & .score-table th,
    & .score-table td {
    padding: 8px 6px;
    border-bottom: 1px solid #eaf4ff;
    text-align: center;
  }
  & .player-flag {
    width: 96px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    overflow-wrap: anywhere;
  }
  & .player-name {
    color: #172033;
    font-weight: 700;
    text-align: left;
    overflow-wrap: anywhere;
  }
  & .set-score {
    width: 42px;
    color: #0f2a44;
    font-size: 18px;
    font-weight: 800;
  }
  & .match-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
  }
  & .match-footer a,
    & .match-footer button {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
  }
  & .btn-edit {
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1e40af;
  }
  & .btn-delete {
    border: 1px solid #fecaca;
    background: #fff;
    color: #b91c1c;
  }
  & .team-score-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 4px 20px;
    border-left: 5px solid #2563eb;
  }
  & .team-score-panel .summary-label {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
  }
  & .team-score {
    grid-row: 2;
    color: #0f2a44;
    font-size: 38px;
    line-height: 1;
  }
  & .team-score-panel .remaining {
    grid-column: 2;
    grid-row: 1 / span 2;
    color: #172033;
    font-size: 17px;
    font-weight: 800;
  }
  & .comments-list {
    margin: 0;
    padding: 0;
    border: 1px solid #d8eafe;
    border-radius: 10px;
    background: #fff;
    list-style: none;
  }
  & .comment-item {
    padding: 16px 18px;
    border-bottom: 1px solid #eaf4ff;
  }
  & .comment-item:last-child {
    border-bottom: 0;
  }
  & .comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
  }
  & .username {
    color: #0f2a44;
    font-size: 13px;
    font-weight: 800;
    overflow-wrap: anywhere;
  }
  & .comment-meta {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 8px;
  }
  & .timestamp {
    color: #64748b;
    font-size: 11px;
  }
  & .comment-delete {
    color: #b91c1c;
    font-size: 11px;
    font-weight: 700;
  }
  & .comment-content {
    color: #172033;
    font-size: 14px;
    line-height: 1.75;
    overflow-wrap: anywhere;
  }
  & .comment-content span,
    & .comment-content p {
    margin: 0;
  }
  & .comment-form {
    position: sticky;
    bottom: 0;
    z-index: 10;
    padding: 12px;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    background: rgba(245, 250, 255, 0.97);
    box-shadow: 0 -4px 16px rgba(15, 42, 68, 0.08);
  }
  & .comment-author {
    margin-bottom: 8px;
    color: #64748b;
  }
  & .comment-form-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
  }
  & .comment-input {
    min-height: 44px;
    max-height: 144px;
    flex: 1;
    resize: none;
    overflow-y: auto;
    padding: 10px 14px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #fff;
    color: #172033;
    font-size: 15px;
    line-height: 1.5;
  }
  & .comment-input:focus {
    border-color: #2563eb;
  }
  & .btn-submit {
    display: inline-flex;
    width: 44px;
    min-width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: #2563eb;
    color: #fff;
    cursor: pointer;
  }
  & .btn-submit:hover {
    background: #1d4ed8;
  }
  & .send-icon {
    width: 20px;
    height: 20px;
  }
  & .form-errors {
    margin: 0 0 10px;
    padding: 10px 12px 10px 30px;
    border: 1px solid #fecaca;
    border-radius: 8px;
    background: #fef2f2;
    color: #991b1b;
    font-size: 13px;
  }
  @media (max-width: 767px) {
    & .comment-page {
      width: min(calc(100% - 24px), 760px);
    }

    & .match-card,
        & .team-score-panel {
      padding: 16px 12px;
    }

    & .match-header,
        & .comment-header {
      align-items: flex-start;
    }

    & .player-flag {
      width: 64px;
    }

    & .set-score {
      width: 30px;
      padding-right: 2px;
      padding-left: 2px;
    }

    & .match-footer a,
        & .match-footer form,
        & .match-footer button {
      flex: 1 1 auto;
    }

    & .team-score-panel {
      grid-template-columns: 1fr;
    }

    & .team-score-panel .remaining {
      grid-column: 1;
      grid-row: 3;
    }

    & .comment-item {
      padding: 14px 12px;
    }

    & .comment-header {
      flex-direction: column;
      gap: 4px;
    }

    & .comment-meta {
      width: 100%;
      justify-content: space-between;
    }

    & .comment-form {
      padding-bottom: calc(12px + env(safe-area-inset-bottom));
    }
  }
}

.matches.new,
.matches.create,
.matches.edit,
.matches.update {
  & .board-form {
    max-width: 760px;
  }
  & .segmented {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  & .segmented-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }
  & .segmented-btn {
    display: inline-flex;
    min-width: 48px;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 8px 13px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: #fff;
    color: #475569;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
  }
  & .segmented-btn:hover {
    border-color: #94a3b8;
    background: #f8fafc;
  }
  & .segmented-input:checked + .segmented-btn {
    border-color: #2563eb;
    background: #eaf4ff;
    color: #1e40af;
  }
  & .segmented-input:checked + .segmented-btn.is-live {
    border-color: #94a3b8;
    background: #f1f5f9;
    color: #334155;
  }
  & .segmented-input:focus-visible + .segmented-btn {
    outline: 3px solid rgba(37, 99, 235, 0.25);
    outline-offset: 2px;
  }
  & .set-list {
    display: grid;
    gap: 14px;
  }
  & .set-block {
    margin: 0;
    padding: 16px;
    border: 1px solid #d8eafe;
    border-radius: 8px;
  }
  & .set-block legend {
    padding: 0 8px;
    color: #0f2a44;
    font-size: 13px;
    font-weight: 800;
  }
  & .scores-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: end;
    gap: 14px;
  }
  & .score-unit {
    display: grid;
    gap: 7px;
    min-width: 0;
  }
  & .score-label {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
  }
  & .score-sep {
    padding-bottom: 11px;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 700;
  }
  & .stepper {
    display: grid;
    grid-template-columns: 40px minmax(60px, 1fr) 40px;
    gap: 7px;
    align-items: center;
  }
  & .stepper-input {
    min-width: 0;
    text-align: center;
  }
  & .stepper-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: #fff;
    color: #334155;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
  }
  & .stepper-btn:hover {
    border-color: #2563eb;
    color: #2563eb;
  }
  & .stepper-btn:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.25);
    outline-offset: 2px;
  }
  @media (max-width: 767px) {
    & .scores-grid {
      grid-template-columns: 1fr;
      align-items: stretch;
    }

    & .score-sep {
      display: none;
    }

    & .segmented-btn {
      flex: 1 1 auto;
    }
  }
}

.team_competitions.index {
  & .season-list {
    display: grid;
    gap: 20px;
  }
  & .season-section {
    overflow: hidden;
    border: 1px solid #d8eafe;
    border-radius: 10px;
    background: #fff;
  }
  & .season-section > summary {
    display: flex;
    min-height: 64px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    border-bottom: 1px solid #d8eafe;
    background: #eaf4ff;
    color: #0f2a44;
    cursor: pointer;
    list-style: none;
  }
  & .season-section > summary::-webkit-details-marker {
    display: none;
  }
  & .season-label {
    display: block;
    margin-bottom: 2px;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
  }
  & .season-title {
    display: block;
    font-size: 18px;
    font-weight: 800;
    overflow-wrap: anywhere;
  }
  & .season-toggle {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 6px;
    color: #2563eb;
    font-size: 12px;
    font-weight: 700;
  }
  & .season-toggle-icon {
    transition: transform 0.18s ease;
  }
  & .season-toggle-closed {
    display: none;
  }
  & .season-section:not([open]) > summary {
    border-bottom-color: transparent;
  }
  & .season-section:not([open]) .season-toggle-icon {
    transform: rotate(-90deg);
  }
  & .season-section:not([open]) .season-toggle-open {
    display: none;
  }
  & .season-section:not([open]) .season-toggle-closed {
    display: inline;
  }
  & .season-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 18px 0;
  }
  & .admin-link,
  & .danger-link,
  & .item-actions a,
  & .item-actions button {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
  }
  & .admin-link,
  & .item-actions .btn-edit {
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1e40af;
  }
  & .danger-link,
  & .item-actions .btn-delete {
    border: 1px solid #fecaca;
    background: #fff;
    color: #b91c1c;
  }
  & .competition-list {
    margin: 0;
    padding: 8px 18px 18px;
    list-style: none;
  }
  & .competition-row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "main summary"
      "actions actions";
    gap: 14px 24px;
    padding: 20px 4px;
    border-bottom: 1px solid #d8eafe;
  }
  & .competition-row:last-child {
    border-bottom: 0;
  }
  & .competition-row:hover {
    background: #f8fbff;
  }
  & .competition-row:has(.tc-card-link:focus-visible) {
    background: #f0f7ff;
  }
  & .tc-card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
  }
  & .tc-card-link-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }
  & .tc-main {
    grid-area: main;
    min-width: 0;
  }
  & .tc-name {
    margin: 0;
    color: #0f2a44;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }
  & .tc-opponent {
    margin: 4px 0 12px;
    color: #2563eb;
    font-size: 14px;
    font-weight: 700;
    overflow-wrap: anywhere;
  }
  & .tc-meta-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin: 0;
  }
  & .tc-meta-list div {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 6px;
  }
  & .tc-meta-list dt {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
  }
  & .tc-meta-list dd {
    margin: 0;
    color: #172033;
    font-size: 13px;
    overflow-wrap: anywhere;
  }
  & .tc-link-hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    color: #2563eb;
    font-size: 13px;
    font-weight: 700;
  }
  & .tc-link-hint-arrow {
    transition: transform 0.16s ease;
  }
  & .competition-row:hover .tc-link-hint-arrow {
    transform: translateX(3px);
  }
  & .tc-summary {
    grid-area: summary;
    display: flex;
    min-width: 132px;
    align-self: start;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    padding-left: 18px;
    border-left: 1px solid #d8eafe;
  }
  & .tc-summary .summary-label {
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
  }
  & .tc-summary .score {
    color: #172033;
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
  }
  & .item-actions {
    grid-area: actions;
    z-index: 2;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
  }
  @media (max-width: 767px) {
    & .season-section > summary {
      padding: 12px;
    }

    & .season-actions {
      padding: 12px 12px 0;
    }

    & .competition-list {
      padding: 4px 12px 12px;
    }

    & .competition-row {
      grid-template-columns: 1fr;
      grid-template-areas:
        "main"
        "summary"
        "actions";
      padding: 18px 0;
    }

    & .tc-meta-list {
      display: grid;
      gap: 6px;
    }

    & .tc-summary {
      min-width: 0;
      align-items: flex-start;
      padding: 12px 0 0;
      border-top: 1px solid #d8eafe;
      border-left: 0;
    }

    & .item-actions {
      justify-content: flex-start;
      flex-wrap: wrap;
    }
  }
}

.team_competitions {
  &.new, &.create, &.edit, &.update {
    & .board-form {
      max-width: 640px;
    }
  }
}

.seasons.index {
  & .season-list {
    margin: 0;
    padding: 0;
    border-top: 1px solid #d8eafe;
    list-style: none;
  }
  & .season-list li {
    display: flex;
    min-height: 64px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 4px;
    border-bottom: 1px solid #d8eafe;
  }
  & .season-name {
    color: #0f2a44;
    font-size: 16px;
    font-weight: 800;
    overflow-wrap: anywhere;
  }
  & .item-actions {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 8px;
  }
  & .item-actions a,
  & .item-actions button {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
  }
  & .btn-edit {
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1e40af;
  }
  & .btn-delete {
    border: 1px solid #fecaca;
    background: #fff;
    color: #b91c1c;
  }
  @media (max-width: 767px) {
    & .season-list li {
      align-items: flex-start;
      flex-direction: column;
    }

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

.seasons.new,
.seasons.create,
.seasons.edit,
.seasons.update {
  & .board-form {
    max-width: 520px;
  }
}

.team_area_accesses.new,
.team_area_accesses.create,
.admin_accesses.new,
.admin_accesses.create {
  & .access-form {
    max-width: 480px;
  }
  & .page-actions {
    max-width: 480px;
    margin-right: auto;
    margin-left: auto;
  }
}

@media (min-width: 1024px) {
  .lg\:flex {
    display: flex;
  }

  .lg\:hidden {
    display: none;
  }

  .lg\:w-auto {
    width: auto;
  }

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

  .lg\:space-x-2 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-x-reverse: 0;
    margin-right: calc(0.5rem * var(--tw-space-x-reverse));
    margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse)));
  }

  .lg\:pb-0 {
    padding-bottom: 0px;
  }
}
