/* iOS shell layout */
.ios-gear-wrap {
  max-width: 920px;
  width: 100%;
  margin: 0 auto;
  padding: 0.5rem 0.85rem 0;
  box-sizing: border-box;
}

.ios-gear-page-header {
  margin-bottom: 1.1rem;
}

.ios-gear-header-text {
  padding: 0.15rem 0 0.25rem;
}

.ios-gear-hub-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.95);
  margin-bottom: 0.35rem;
}

.ios-gear-hub-tab {
  color: rgba(125, 211, 252, 0.95);
  text-decoration: none;
}

.ios-gear-hub-tab:hover,
.ios-gear-hub-tab:focus {
  color: #bae6fd;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ios-gear-hub-tab--active {
  color: rgba(248, 250, 252, 0.95);
  text-decoration: none;
  pointer-events: none;
}

.ios-gear-hub-sep {
  color: rgba(100, 116, 139, 0.9);
  font-weight: 400;
}

.ios-gear-header-title {
  margin: 0;
  font-size: clamp(1.35rem, 4.2vw, 1.75rem);
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: -0.02em;
}

.ios-gear-header-sub {
  margin: 0.4rem 0 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(148, 163, 184, 0.95);
  max-width: 44rem;
}

/* Mirrored from sessions/gear-shed.html (gear editor) */
.gear-shed-wrap #gear-shed-app {
  max-width: min(920px, 100%);
  margin-left: 0;
}

.gear-shed-slot {
  margin-bottom: 2rem;
  padding: 1.35rem 1.25rem 1.4rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.22);
}

.gear-shed-slot h2 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 1rem;
  color: #fff;
  line-height: 1.4;
}

.gear-shed-slot h2 + .gear-shed-list {
  margin-top: 0.15rem;
}

.gear-shed-group-hint {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.52);
  margin: -0.25rem 0 1.05rem;
  line-height: 1.5;
}

.gear-shed-group-hint a {
  color: #7dd3fc;
  text-decoration: none;
}

.gear-shed-group-hint a:hover,
.gear-shed-group-hint a:focus {
  text-decoration: underline;
}

.gear-shed-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gear-shed-list li.gear-shed-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  padding: 0.7rem 0.15rem 0.7rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.92rem;
}

.gear-shed-list li.gear-shed-item:last-child {
  border-bottom: none;
}

.gear-shed-item-summary-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  flex: 1 1 100%;
  min-width: 0;
}

.gear-shed-item-summary-row[hidden] {
  display: none !important;
}

.gear-shed-item-name-read {
  flex: 1 1 140px;
  min-width: 0;
  color: rgba(255, 255, 255, 0.92);
  word-break: break-word;
  cursor: pointer;
  font-weight: 600;
}

.gear-shed-item-name-read:hover {
  color: #7dd3fc;
}

.gear-shed-item-editor {
  flex: 1 1 100%;
  min-width: 0;
  padding: 0.15rem 0 0.35rem;
}

.gear-shed-item-editor[hidden] {
  display: none !important;
}

.gear-shed-editor-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.35rem;
}

.gear-shed-rename-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 0.92rem;
}

.gear-shed-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.55rem;
}

.gear-shed-save-rename,
.gear-shed-cancel-rename,
.gear-shed-edit-btn {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
}

.gear-shed-edit-btn {
  border: 1px solid #e64980;
  background: #e64980;
  background-image: none;
  color: #fff;
  -webkit-tap-highlight-color: transparent;
}

.gear-shed-edit-btn:active {
  background: #e64980;
  filter: none;
  opacity: 0.92;
}

.gear-shed-save-rename {
  border: none;
  background: #2592c2;
  color: #fff;
}

.gear-shed-cancel-rename {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
}

.gear-shed-editor-hint {
  margin: 0.45rem 0 0;
  font-size: 0.76rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.45);
}

.gear-shed-wing-th-wrap {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex: 0 0 auto;
}

.gear-shed-wing-th-wrap label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
}

.gear-shed-wing-threshold,
.gear-shed-foil-threshold {
  width: 4rem;
  padding: 0.32rem 0.4rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  box-sizing: border-box;
}

.gear-shed-item-actions,
.gear-shed-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.gear-shed-actions button {
  font-size: 0.78rem;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  cursor: pointer;
  font-weight: 600;
}

.gear-shed-actions button:hover {
  background: rgba(255, 255, 255, 0.14);
}

.gear-shed-item-actions button.gear-shed-btn-danger,
.gear-shed-actions button.gear-shed-btn-danger {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #0a0a0a;
  color: #fff;
  padding: 0.42rem 0.5rem;
  min-width: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gear-shed-item-actions button.gear-shed-btn-danger:hover,
.gear-shed-actions button.gear-shed-btn-danger:hover {
  background: #171717;
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.gear-shed-item-actions button.gear-shed-btn-danger svg,
.gear-shed-actions button.gear-shed-btn-danger svg {
  display: block;
  flex-shrink: 0;
}

.gear-shed-add-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.15rem;
  padding-top: 0.35rem;
  align-items: stretch;
}

.gear-shed-input-wrap {
  flex: 1 1 200px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.2rem 0.75rem 0.2rem 0.6rem;
  min-height: 2.65rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.35);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.gear-shed-input-wrap:focus-within {
  border-color: rgba(125, 211, 252, 0.55);
  box-shadow: 0 0 0 1px rgba(125, 211, 252, 0.25);
}

.gear-shed-input-wrap .gear-shed-plus {
  flex-shrink: 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1;
  user-select: none;
}

.gear-shed-add-row input[type='text'] {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.55rem 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-size: 0.9rem;
}

.gear-shed-add-row input[type='text']:focus {
  outline: none;
}

.gear-shed-add-row button {
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  align-self: stretch;
  border: none;
  background: #2592c2;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.88rem;
}

.gear-shed-add-row button:hover {
  background: #2fa3d4;
}

.gear-shed-status {
  margin-top: 0.75rem;
  font-size: 0.86rem;
  min-height: 1.2rem;
  color: #6ee7b7;
}

.gear-shed-status.err {
  color: #fca5a5;
}

.gear-shed-discipline-table-wrap {
  overflow-x: auto;
  margin-top: 1.5rem;
}

.gear-shed-discipline-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.88);
}

.gear-shed-discipline-table th,
.gear-shed-discipline-table td {
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.45rem 0.55rem;
  text-align: left;
}

.gear-shed-discipline-table th {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
}

.gear-shed-discipline-table caption {
  caption-side: top;
  text-align: left;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.5rem;
}

.gear-shed-inventory-wrap {
  margin-top: 1.75rem;
}

.gear-shed-inventory-none {
  color: rgba(251, 191, 36, 0.85);
  font-style: italic;
}

.gear-shed-signin-hint {
  width: 100%;
  box-sizing: border-box;
  padding: 1rem 1.15rem;
  margin: 0.5rem 0 1.25rem;
  border-radius: 12px;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: #fde68a;
  font-size: 0.92rem;
  text-align: left;
  line-height: 1.5;
}

.gear-shed-signin-hint a {
  color: #7dd3fc;
}
