.sheet-page {
  width: 100%;
}

#app {
  width: 100%;
  overflow-x: clip;
  --form-control-min-height: 36px;
  --form-control-font-size: 0.95rem;
  --tap-target-min-size: 40px;
  --compact-icon-btn-size: 34px;
}

/* ページ内フォームの最低操作サイズを統一 */
#app :is(
  input[type="text"],
  input[type="number"],
  input[type="search"],
  input[type="url"],
  input[type="email"],
  input[type="password"],
  input[type="date"],
  select,
  textarea,
  .form-control,
  .form-select
) {
  min-height: var(--form-control-min-height);
  font-size: var(--form-control-font-size);
  line-height: 1.25;
}

#app :is(textarea, textarea.form-control) {
  min-height: calc(var(--form-control-min-height) * 1.8);
}

#app :is(button.btn, .api-response-button) {
  min-height: var(--tap-target-min-size);
  font-size: var(--form-control-font-size);
  touch-action: manipulation;
}

#app :is(input[type="checkbox"], input[type="radio"]):not(.menu-open):not(.checkbox12) {
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
}

.page-shell {
  width: min(1320px, 100% - 48px);
  margin: 0 auto;
  margin-top: 10px;
  padding: 18px 24px 120px;
  display: grid;
  gap: 16px;
  border: 1px solid rgba(186, 255, 252, 0.24);
  border-radius: 10px;
  position: relative;
}

.page-shell::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(186, 255, 252, 0.1);
  border-radius: 8px;
  pointer-events: none;
}

.sheet-section {
  width: 100%;
}

.sheet-title {
  padding-top: 10px;
  min-height: 92px;
  display: flex;
  align-items: center;
}

.sheet-profile,
.sheet-status,
.sheet-skill {
  border: 1px solid rgba(186, 255, 252, 0.32);
  border-radius: 14px;
  padding: 16px;
  background-color: rgba(31, 54, 53, 0.16);
}

.sheet-profile #profile {
  margin: 0;
  border-radius: 14px;
  padding: 18px;
}

.sheet-profile {
  min-height: 250px;
}

.sheet-profile #profile h2 {
  margin-bottom: 12px;
  font-size: 1.05rem;
}

.sheet-profile #profile .row {
  --bs-gutter-x: 0.45rem;
  --bs-gutter-y: 0.2rem;
  margin-bottom: 2px;
}

.sheet-profile #profile label {
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}

.sheet-profile #profile input,
.sheet-profile #profile select,
.sheet-profile #profile .form-control {
  min-height: var(--form-control-min-height);
  padding-top: 3px;
  padding-bottom: 3px;
  font-size: var(--form-control-font-size);
}

.sheet-profile #profile #memobox {
  min-height: 60px;
}

.sheet-status #statusAll {
  margin: 0;
}

.sheet-status .container {
  max-width: 100%;
}

.sheet-status {
  min-height: 312px;
}

.sheet-status #sanSummary {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.sheet-status .san-summary-item {
  margin: 0;
  border: 1px solid rgba(186, 255, 252, 0.24);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.sheet-status .san-summary-item.is-alert {
  color: #ff8f8f;
  border-color: rgba(255, 143, 143, 0.4);
}

.sheet-status .san-summary-value {
  margin-left: 6px;
  font-size: 1.02rem;
}

.sheet-status #statusAll .row {
  --bs-gutter-x: 0.38rem;
  --bs-gutter-y: 0.2rem;
  margin-bottom: 2px;
}

.sheet-status #statusAll .form-label {
  font-size: 0.88rem;
  margin-bottom: 0;
}

.sheet-status #statusAll input.form-control,
.sheet-status #statusAll select.form-select {
  min-height: var(--form-control-min-height);
  font-size: var(--form-control-font-size);
  padding-top: 2px;
  padding-bottom: 2px;
  padding-left: 0.35rem;
  padding-right: 0.35rem;
}

/* statusAllの数値フォームは最低3桁分の表示幅を確保 */
.sheet-status #statusAll .stts_slct,
.sheet-status #statusAll .statusInputForm,
.sheet-status #statusAll .statusSelectForm {
  width: 100%;
  min-width: 3.6rem;
  max-width: 4.2rem;
  text-align: center;
}

/* 3桁幅を確保しつつ、列を押し広げて折り返さないようにする */
.sheet-status #statusAll .row > .col,
.sheet-status #statusAll .row > [class*="col-"] {
  min-width: 0;
}

.sheet-status #statusAll .btn {
  min-height: var(--tap-target-min-size);
  line-height: 1.1;
}

.sheet-status .status-head-row {
  --bs-gutter-x: 0.2rem;
}

.sheet-status .status-head-item {
  gap: 4px;
  align-items: center;
}

.sheet-status .status-label-wrap {
  flex: 1 1 auto;
  justify-content: flex-end;
  min-width: 0;
}

.sheet-status .status-label-wrap .whiteColorBtn {
  padding: 0;
  line-height: 1.1;
}

.sheet-status .status-roll-wrap {
  flex: 0 0 auto;
  width: auto;
  min-width: var(--compact-icon-btn-size);
  padding-left: 0;
  padding-right: 0;
}

.sheet-status .status-roll-btn {
  min-width: var(--compact-icon-btn-size);
  width: var(--compact-icon-btn-size);
  height: var(--compact-icon-btn-size);
  min-height: var(--compact-icon-btn-size) !important;
  border-radius: 6px;
}

.sheet-status #statusAll hr {
  margin: 4px 0;
  opacity: 0.3;
}

.sheet-skill .accordion-item {
  width: 100%;
  max-width: none;
}

.sheet-skill {
  min-height: 220px;
  --skill-label-col-width: 16ch;
  --skill-value-col-width: 64px;
}

.sheet-skill .accordion-button {
  min-height: 38px;
  padding-top: 6px;
  padding-bottom: 6px;
  background-color: rgba(18, 35, 34, 0.7);
  color: #e9f8f7;
  border-bottom: 1px solid rgba(186, 255, 252, 0.24);
}

.sheet-skill .accordion-body {
  padding-top: 10px;
  padding-left: 14px;
  padding-right: 14px;
  color: #e9f8f7;
}

.sheet-skill .btn,
.sheet-skill .form-control,
.sheet-skill .form-select {
  border-radius: 6px;
}

.sheet-skill .skill-section-item {
  background-color: rgba(17, 34, 33, 0.52);
  border: 1px solid rgba(186, 255, 252, 0.24);
}

.sheet-skill .skill-section-body {
  width: 100%;
  max-width: 100%;
  flex: 0 0 100%;
  padding-left: 8px;
  padding-right: 8px;
}

.sheet-skill .skill-open-modal-btn {
  margin-bottom: 14px;
}

.sheet-skill .skill-summary-row {
  display: grid;
  grid-template-columns: var(--skill-label-col-width) var(--skill-value-col-width);
  align-items: center;
  justify-content: start;
  gap: 10px;
  margin-bottom: 9px;
  padding-left: 10px;
}

/* bootstrapの.row > * (width:100%) を打ち消して横並びにする */
.sheet-skill .skill-summary-row > * {
  width: 100%;
  max-width: none;
  flex-shrink: 1;
}

.sheet-skill .skill-summary-label,
.sheet-skill .skill-summary-value-btn {
  color: #eaf9f8;
}

.sheet-skill .skill-summary-label {
  text-align: left;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.3;
  min-width: 0;
  max-width: none;
  padding: 0;
}

.sheet-skill .skill-summary-value-wrap {
  display: flex;
  justify-content: flex-start;
  width: var(--skill-value-col-width);
  min-width: var(--skill-value-col-width);
  margin-left: 0;
}

.sheet-skill .SkillOverlayStyle {
  width: auto;
  min-width: 60px;
  line-height: normal;
}

.sheet-skill .skill-summary-value {
  width: auto;
  text-align: left;
}

.sheet-skill .skill-summary-value-btn {
  min-width: 100%;
  width: 100%;
  padding: 0 8px;
}

.sheet-skill .skill-overlay-editor {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: auto;
  width: min(260px, 72vw);
  max-width: min(260px, 72vw);
  padding: 8px;
  border: 1px solid rgba(186, 255, 252, 0.32);
  border-radius: 10px;
  background: rgba(14, 32, 31, 0.94);
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.sheet-skill .skill-overlay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sheet-skill .skill-overlay-title {
  font-size: 0.8rem;
  color: rgba(234, 249, 248, 0.92);
}

.sheet-skill .skill-overlay-close {
  min-width: 22px;
  min-height: 22px;
  line-height: 1;
  border: 1px solid rgba(186, 255, 252, 0.35);
  border-radius: 6px;
  background: rgba(31, 54, 53, 0.55);
  color: #eaf9f8;
}

.sheet-skill .skill-overlay-row {
  display: grid;
  grid-template-columns: 2.8rem 1fr;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.sheet-skill .skill-overlay-label {
  font-size: 0.8rem;
  color: rgba(234, 249, 248, 0.9);
}

.sheet-skill .skill-overlay-input {
  min-height: 30px;
  text-align: right;
  font-size: 0.9rem;
}

.sheet-memo {
  min-height: 320px;
  border: 1px solid rgba(186, 255, 252, 0.3);
  border-radius: 14px;
  padding: 18px;
  color: #eaf9f8;
}

.sheet-heading {
  margin: 0 0 12px;
  font-size: 1.05rem;
  color: #f4fffe;
}

.sheet-note {
  margin: 0;
  opacity: 1;
  min-height: 96px;
  border-top: 1px solid rgba(186, 255, 252, 0.24);
  padding-top: 12px;
  color: rgba(234, 249, 248, 0.9);
}

.sheet-memo-viewer {
  min-height: 170px;
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 10px;
  border: 1px solid rgba(186, 255, 252, 0.26);
  background: rgba(31, 54, 53, 0.1);
  cursor: pointer;
  color: #f0fbfa;
  line-height: 1.5;
}

.sheet-memo-viewer p {
  margin: 0;
}

.sheet-memo-viewer a {
  color: #8ed9ff;
}

.sheet-memo-viewer a:hover {
  color: #b8ebff;
}

/* メモモーダルの配色を全体デザインに統一 */
#meModal .modal-content {
  background-color: #1f3635;
  color: #eaf9f8;
  border: 1px solid rgba(186, 255, 252, 0.35);
  border-radius: 14px;
}

#meModal .modal-header,
#meModal .modal-footer {
  background: rgba(18, 35, 34, 0.94);
  border-color: rgba(186, 255, 252, 0.24);
}

#meModal .modal-title {
  color: #ffffff;
}

#meModal .modal-body {
  background: rgba(31, 54, 53, 0.22);
  color: #eaf9f8;
}

#meModal .btn-close {
  filter: invert(1);
  opacity: 0.88;
}

#meModal .btn-secondary {
  background-color: #566167;
  border-color: #566167;
}

#meModal .btn-primary {
  background-color: #2d6cdf;
  border-color: #2d6cdf;
}

#meModal .btn-secondary:hover,
#meModal .btn-primary:hover {
  filter: brightness(1.06);
}

#meModal trix-toolbar {
  background: rgba(18, 35, 34, 0.96);
  border: 1px solid rgba(186, 255, 252, 0.26);
  border-radius: 10px 10px 0 0;
}

#meModal trix-toolbar .trix-button {
  background: rgba(31, 54, 53, 0.76);
  border-color: rgba(186, 255, 252, 0.24);
  color: #eaf9f8;
}

#meModal trix-toolbar .trix-button--icon::before {
  background-color: #d7f0ee;
}

#meModal trix-toolbar .trix-button.trix-active {
  background: rgba(45, 108, 223, 0.4);
}

#meModal trix-editor {
  border: 1px solid rgba(186, 255, 252, 0.28) !important;
  border-top: none !important;
  background: rgba(14, 32, 31, 0.78);
  color: #eaf9f8;
  border-radius: 0 0 10px 10px;
  min-height: 220px !important;
}

#meModal trix-editor:focus {
  box-shadow: 0 0 0 0.15rem rgba(186, 255, 252, 0.2);
}

#meModal trix-editor .trix-content {
  color: #eaf9f8;
}

/* 技能モーダルの配色・余白をページ全体に合わせる */
#skillModal .modal-content {
  background-color: #1f3635;
  color: #fff;
  border: 1px solid rgba(186, 255, 252, 0.35);
  border-radius: 14px;
}

#skillModal .modal-header,
#skillModal .modal-footer {
  border-color: rgba(186, 255, 252, 0.24);
}

#skillModal .modal-title {
  color: #fff;
}

#skillModal .modal-body {
  color: #fff;
  background: rgba(31, 54, 53, 0.22);
}

#skillModal .accordion-item,
#skillModal .accordion-button,
#skillModal .accordion-collapse,
#skillModal .accordion-body {
  background-color: transparent;
  color: #eaf9f8;
}

#skillModal .accordion-button:not(.collapsed) {
  background-color: rgba(18, 35, 34, 0.88);
  color: #ffffff;
  box-shadow: none;
}

#skillModal .sticky {
  background-color: rgba(18, 35, 34, 0.92);
  border: 1px solid rgba(186, 255, 252, 0.26);
  border-radius: 10px;
  margin-bottom: 8px;
  top: 0;
}

#skillModal .tecen,
#skillModal .tecen2,
#skillModal .chcen,
#skillModal .form-label,
#skillModal .modal-body p,
#skillModal .modal-body div {
  color: #eaf9f8;
}

#skillModal .tecen {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.15;
  font-size: 0.86rem;
}

#skillModal .form-control,
#skillModal .form-select {
  background-color: rgba(14, 32, 31, 0.75);
  border: 1px solid rgba(186, 255, 252, 0.25);
  color: #fff;
}

#skillModal input[type="checkbox"],
#skillModal input[type="radio"] {
  accent-color: #3f5efb;
}

#skillModal .btn-primary {
  background-color: #2d6cdf;
  border-color: #2d6cdf;
}

#skillModal .btn-danger {
  background-color: #d74f67;
  border-color: #d74f67;
}

#skillModal .btn-primary:hover,
#skillModal .btn-danger:hover {
  filter: brightness(1.06);
}

#skillModal .modal-footer {
  border-top: 1px solid rgba(186, 255, 252, 0.24);
  background: rgba(18, 35, 34, 0.95);
}

#skillModal .skill-modal-footer {
  color: #eaf9f8;
}

#skillModal .skill-point-summary {
  color: #eaf9f8;
  font-size: 0.95rem;
}

#skillModal .form-control:focus,
#skillModal .form-select:focus {
  border-color: rgba(186, 255, 252, 0.65);
  box-shadow: 0 0 0 0.15rem rgba(186, 255, 252, 0.2);
}

#skillModal .row > .col,
#skillModal .row > [class*="col-"] {
  min-width: 0;
}

#skillModal .incen {
  width: 100%;
  min-width: 0;
}

/* 運転()のカッコ内編集で行全体が伸びるのを防ぐ */
#skillModal .overspad {
  flex: 0 0 8.333333%;
  max-width: 8.333333%;
  min-width: 0;
}

#skillModal .divStyle {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  min-height: 34px;
}

#skillModal .txtStyle {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.2;
  font-size: 0.86rem;
}

#skillModal .txtGroup.absolute {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  transform: none;
  width: auto;
  min-width: 190px;
  max-width: min(320px, 60vw);
  padding: 6px;
  background: rgba(14, 32, 31, 0.95);
  border: 1px solid rgba(186, 255, 252, 0.35);
  border-radius: 8px;
  z-index: 20;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  white-space: nowrap;
}

#skillModal .txtGroup.absolute > div {
  flex: 0 0 auto;
}

#skillModal .overs {
  min-height: var(--form-control-min-height);
  height: auto;
  width: 150px;
  max-width: 32vw;
}

#skillModal .btn-close {
  filter: invert(1);
  opacity: 0.85;
}

/* 特徴表モーダルの配色・可読性を技能モーダルと統一 */
#exampleModal .modal-content {
  background-color: #1f3635;
  color: #eaf9f8;
  border: 1px solid rgba(186, 255, 252, 0.35);
  border-radius: 14px;
}

#exampleModal .modal-header,
#exampleModal .modal-footer {
  background: rgba(18, 35, 34, 0.95);
  border-color: rgba(186, 255, 252, 0.24);
}

#exampleModal .modal-title {
  color: #ffffff;
}

#exampleModal .modal-body {
  background: rgba(31, 54, 53, 0.22);
  color: #eaf9f8;
  line-height: 1.6;
}

#exampleModal .modal-body .blackColor,
#exampleModal .modal-header .blackColor {
  color: #eaf9f8 !important;
  background: transparent !important;
}

#exampleModal h2.blackColor {
  margin-top: 18px;
  margin-bottom: 10px;
  padding-left: 8px;
  border-left: 3px solid rgba(186, 255, 252, 0.42);
  font-size: 1.1rem;
}

#exampleModal .modal-body > div[id^="feature-"] {
  padding: 8px 10px;
  border: 1px solid rgba(186, 255, 252, 0.2);
  border-radius: 8px;
  background: rgba(14, 32, 31, 0.35);
}

#exampleModal .modal-body > div[id^="feature-"].feature-highlight {
  background: rgba(255, 235, 159, 0.25);
  border-color: rgba(255, 206, 84, 0.8);
  box-shadow: 0 0 0 2px rgba(255, 206, 84, 0.28);
  color: #fff4cf;
}

#exampleModal #Features {
  border: 1px solid rgba(186, 255, 252, 0.4);
  border-radius: 8px;
  padding: 4px 10px;
  color: #eaf9f8 !important;
}

#exampleModal #Features:hover {
  background: rgba(186, 255, 252, 0.16) !important;
}

#exampleModal #FeaturesDice {
  margin-left: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(186, 255, 252, 0.35);
  color: #eaf9f8;
  min-width: 58px;
  text-align: center;
}

#exampleModal .btn-close {
  filter: invert(1);
  opacity: 0.85;
}

@media (max-width: 1024px) {
  #app {
    --form-control-min-height: 40px;
    --tap-target-min-size: 42px;
    --compact-icon-btn-size: 38px;
  }
}

@media (min-width: 768px) {
  .sheet-skill {
    --skill-label-col-width: 22ch;
    --skill-value-col-width: 56px;
  }

  .sheet-skill .skill-summary-label {
    white-space: nowrap;
  }

  /* PCでは < > ボタンをややコンパクト化して重なりを防ぐ */
  .sheet-status #statusAll .btn.btn-primary.btn-color {
    min-height: 32px;
    min-width: 2rem;
    padding: 0 0.3rem;
    line-height: 1;
    font-size: 0.95rem;
  }

  .sheet-status #statusAll .stts_slct {
    min-width: 3.4rem;
    max-width: 3.9rem;
  }
}

@media (max-width: 767px) {
  #app {
    --form-control-min-height: 44px;
    --form-control-font-size: 1rem;
    --tap-target-min-size: 44px;
    --compact-icon-btn-size: 40px;
  }

  #app :is(input[type="checkbox"], input[type="radio"]):not(.menu-open):not(.checkbox12) {
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
  }

  .page-shell {
    width: min(1320px, 100% - 24px);
    gap: 12px;
    padding: 14px 12px 110px;
    padding-bottom: 110px;
  }

  .page-shell::before {
    inset: 8px;
  }

  .sheet-profile,
  .sheet-status,
  .sheet-skill,
  .sheet-memo {
    padding: 12px;
    border-radius: 10px;
    min-height: auto;
  }

  .sheet-title {
    min-height: 68px;
    padding-top: 6px;
  }

  .titles {
    gap: 8px;
  }

  .title_img {
    height: min(84px, 16vh);
  }

  .sheet-profile #profile {
    padding: 10px;
  }

  .sheet-profile #profile .col-4,
  .sheet-profile #profile .col-8 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .sheet-profile #profile .col-8 form {
    width: 100% !important;
    max-width: 100%;
  }

  .sheet-profile #profile .row > .col-1 {
    flex: 0 0 4.8rem;
    max-width: 4.8rem;
  }

  .sheet-profile #profile .row > .col-md-2,
  .sheet-profile #profile .row > .col-md-6,
  .sheet-profile #profile .row > .col-md-11,
  .sheet-profile #profile .row > .col-5 {
    flex: 1 1 calc(100% - 4.8rem);
    max-width: calc(100% - 4.8rem);
  }

  .sheet-profile #profile #viewImage {
    width: min(220px, 56vw);
  }

  .sheet-status #sanSummary {
    gap: 8px;
    margin-bottom: 10px;
  }

  .sheet-status .san-summary-item {
    font-size: 0.85rem;
    padding: 3px 8px;
  }

  .sheet-status #statusAll .status-grid-scroll {
    border: 1px solid rgba(186, 255, 252, 0.2);
    border-radius: 8px;
    padding: 6px 6px 8px;
    background: rgba(14, 32, 31, 0.25);
  }

  .sheet-note {
    min-height: auto;
  }

  .sheet-memo-viewer {
    min-height: 130px;
  }

  /* statusAllはスマホで横スクロール前提にして崩れを防ぐ */
  .sheet-status #statusAll .status-grid-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
  }

  .sheet-status #statusAll .status-grid-scroll > .row {
    flex-wrap: nowrap;
    min-width: 860px;
  }

  .sheet-status #statusAll .status-grid-scroll > .row > .col-1 {
    flex: 0 0 72px;
    max-width: 72px;
  }

  .sheet-status #statusAll .status-grid-scroll > .row > .col {
    flex: 1 0 88px;
    min-width: 88px;
  }

  .sheet-status #statusAll .status-grid-scroll .status_mar {
    margin-left: 0;
    margin-right: 0;
  }

  .sheet-skill .accordion-button {
    min-height: 44px;
    font-size: 0.95rem;
  }

  .sheet-skill .skill-section-body {
    padding-left: 6px;
    padding-right: 6px;
  }

  .sheet-skill .skill-summary-row {
    margin-bottom: 10px;
    align-items: center;
    display: grid;
    grid-template-columns: 13.5ch 58px;
    justify-content: start;
    gap: 8px;
    padding-left: 8px;
  }

  .sheet-skill .skill-summary-row > [class*="col-"] {
    flex: initial;
    max-width: none;
    width: auto;
    padding-left: 0;
    padding-right: 0;
  }

  .sheet-skill .skill-summary-label {
    white-space: normal;
    line-height: 1.2;
    font-size: 0.92rem;
    padding-right: 0;
    max-width: none;
  }

  .sheet-skill .skill-summary-value-wrap {
    width: 58px;
    min-width: 58px;
    justify-content: flex-start;
  }

  .sheet-skill .skill-summary-value {
    text-align: left;
  }

  .sheet-skill .skill-summary-value-btn {
    min-width: 54px;
    min-height: 36px;
    padding: 0 8px;
    border-radius: 8px;
    border: 1px solid rgba(186, 255, 252, 0.35);
    background: rgba(31, 54, 53, 0.55);
  }

  .sheet-skill .skill-overlay-editor {
    top: calc(100% + 4px);
    right: 0;
    left: auto;
    width: min(232px, 74vw);
    max-width: min(232px, 74vw);
  }

  .sheet-memo .sheet-heading {
    margin-bottom: 8px;
  }

  #skillModal .overspad {
    flex-basis: 8.333333%;
    max-width: 8.333333%;
  }

  #skillModal .divStyle {
    width: 100%;
  }

  #skillModal .txtGroup.absolute {
    min-width: 180px;
  }

  #skillModal .modal-dialog {
    margin: 0.35rem;
    max-width: calc(100vw - 0.7rem);
  }

  #skillModal .modal-content {
    max-height: calc(100vh - 0.7rem);
  }

  #skillModal .modal-body {
    padding: 0.55rem;
    font-size: 0.96rem;
  }

  #skillModal .sticky {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    row-gap: 8px;
    column-gap: 6px;
    padding: 0.45rem;
  }

  #skillModal .sticky > .col-1 {
    flex: 0 0 24px;
    max-width: 24px;
    padding: 0;
  }

  #skillModal .sticky > .col-8,
  #skillModal .sticky > .col-md-3 {
    flex: 1 1 44%;
    max-width: none;
    margin-left: 0 !important;
  }

  #skillModal .sticky > .col-2,
  #skillModal .sticky > .col-md-1 {
    flex: 0 0 auto;
    max-width: none;
    padding: 0;
  }

  #skillModal #icon {
    flex: 1 1 100%;
    max-width: 100%;
    margin: 2px 0 0;
  }

  #skillModal #icon > div {
    min-height: 34px;
  }

  #skillModal .accordion-body {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  #skillModal .accordion-body .row {
    --bs-gutter-x: 0.3rem;
    min-width: 760px;
    flex-wrap: nowrap;
  }

  #skillModal .accordion-body .tecen,
  #skillModal .accordion-body .tecen2 {
    font-size: 0.95rem;
  }

  #skillModal .accordion-body .form-control,
  #skillModal .accordion-body .form-select {
    min-height: 40px;
    font-size: 0.96rem;
  }
}

@media (max-width: 480px) {
  .page-shell {
    width: calc(100% - 12px);
    padding-left: 8px;
    padding-right: 8px;
  }

  .sheet-status #statusAll .status-grid-scroll > .row {
    min-width: 820px;
  }

  .sheet-profile #profile .row > .col-1 {
    flex-basis: 4.4rem;
    max-width: 4.4rem;
  }
}
