/* Standalone field entry — mobile-first, no theme dependencies */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.45;
  color: #1a2e1a;
  background: #eef3ee;
  min-height: 100dvh;
  -webkit-tap-highlight-color: transparent;
}

.fe-root {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.fe-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.fe-screen[hidden] {
  display: none !important;
}

/* Login */
.fe-login {
  padding: max(1.5rem, env(safe-area-inset-top)) 1.25rem max(2rem, env(safe-area-inset-bottom));
  justify-content: center;
  gap: 1.5rem;
}

.fe-login-hero {
  text-align: center;
  padding: 0.5rem 0;
}

.fe-login-mark {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 0.75rem;
  border-radius: 14px;
  background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.3);
}

.fe-login-mark span {
  line-height: 1;
}

.fe-login-hero h1 {
  margin: 0 0 0.35rem;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.fe-login-site {
  margin: 0;
  font-size: 0.95rem;
  color: #3d6b3d;
  font-weight: 600;
}

.fe-login-hint {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: #6b7c6b;
}

.fe-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 4px 24px rgba(22, 80, 40, 0.08);
}

.fe-login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Main layout */
.fe-main {
  padding-bottom: calc(5.5rem + env(safe-area-inset-bottom));
}

.fe-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: max(0.75rem, env(safe-area-inset-top)) 1rem 0.75rem;
  background: #fff;
  border-bottom: 1px solid #dce8dc;
  position: sticky;
  top: 0;
  z-index: 10;
}

.fe-topbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.fe-topbar-title {
  display: none;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a2e1a;
  white-space: nowrap;
}

.fe-topbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.fe-submit-desktop {
  display: none;
  min-height: 2.5rem;
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
}

.fe-layout {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  padding: 1rem;
  min-width: 0;
}

.fe-sidebar,
.fe-workspace {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  min-width: 0;
}

.fe-form-row {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.fe-step-grow {
  flex: 1;
}

.fe-step-badge-muted {
  background: #c5d9c5;
  color: #fff;
}

.fe-photo-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.fe-btn-upload {
  display: none;
  width: 100%;
  min-height: 2.75rem;
  border: 1.5px solid #c5d9c5;
}

.fe-photo-hint {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: #8a9a8a;
}

.fe-photo-hint-desktop {
  display: none;
}

.fe-workspace-submit {
  display: none;
}

.fe-kbd-hint {
  display: none;
  font-size: 0.75rem;
  color: #8a9a8a;
}

.fe-step-photos.is-dragover {
  outline: 2px dashed #16a34a;
  outline-offset: 2px;
  background: #f4faf4;
}

.fe-type-chip:hover {
  border-color: #a7d4a7;
  background: #f4faf4;
}

.fe-user {
  font-size: 0.9rem;
  line-height: 1.35;
  min-width: 0;
}

.fe-topbar-left .fe-user strong {
  display: inline;
  font-size: 0.9rem;
}

.fe-topbar-left .fe-user span {
  margin-left: 0.35rem;
}

.fe-user span {
  color: #6b7c6b;
  font-size: 0.8rem;
}

.fe-text-btn {
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: #6b7c6b;
  font-size: 0.875rem;
  padding: 0.5rem 0.25rem;
  cursor: pointer;
}

.fe-content {
  flex: 1;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

/* Steps */
.fe-step {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: #fff;
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 2px 12px rgba(22, 80, 40, 0.06);
}

.fe-step-badge {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: #16a34a;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
}

.fe-step-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.fe-step-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #6b7c6b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Form controls */
.fe-label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.fe-label > span {
  font-size: 0.875rem;
  font-weight: 600;
  color: #3d5c3d;
}

.fe-input,
.fe-select,
.fe-textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 0.75rem 0.875rem;
  border: 1.5px solid #c5d9c5;
  border-radius: 10px;
  background: #fafcfa;
  color: #1a2e1a;
  appearance: none;
  -webkit-appearance: none;
}

.fe-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7c6b' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  padding-right: 2.25rem;
}

.fe-input:focus,
.fe-select:focus,
.fe-textarea:focus {
  outline: none;
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}

.fe-textarea {
  resize: vertical;
  min-height: 4rem;
}

.fe-loc-row {
  display: flex;
  gap: 0.5rem;
}

.fe-loc-row .fe-input {
  flex: 1;
  min-width: 0;
}

.fe-step-label small {
  font-weight: 500;
  color: #8a9a8a;
  margin-left: 0.35rem;
}

/* Batch summary */
.fe-batch-card {
  margin-top: 0.5rem;
  padding: 0.75rem 0.875rem;
  background: #f4faf4;
  border-radius: 10px;
  border: 1px solid #d4ead4;
}

.fe-batch-card[hidden] {
  display: none !important;
}

.fe-batch-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #1a2e1a;
}

.fe-batch-meta {
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: #6b7c6b;
  line-height: 1.4;
}

/* Batch timeline */
.fe-timeline-wrap {
  background: #fff;
  border-radius: 14px;
  padding: 0.875rem 1rem;
  box-shadow: 0 2px 12px rgba(22, 80, 40, 0.06);
}

.fe-timeline-wrap[hidden] {
  display: none !important;
}

.fe-timeline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 700;
  color: #3d5c3d;
  margin-bottom: 0.65rem;
}

.fe-timeline-count {
  font-weight: 600;
  color: #16a34a;
  font-size: 0.8rem;
}

.fe-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.fe-timeline li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.85rem;
  padding: 0.45rem 0.5rem;
  background: #fafcfa;
  border-radius: 8px;
}

.fe-timeline li .fe-tl-type {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 700;
  color: #15803d;
  background: #ecfdf3;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

.fe-timeline li .fe-tl-body {
  flex: 1;
  min-width: 0;
}

.fe-timeline li .fe-tl-body strong {
  display: block;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fe-timeline li .fe-tl-body span {
  font-size: 0.75rem;
  color: #8a9a8a;
}

.fe-timeline-empty {
  font-size: 0.8rem;
  color: #8a9a8a;
  text-align: center;
  padding: 0.5rem 0;
}

/* Type grid */
.fe-type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.fe-type-chip {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-height: 4.25rem;
  padding: 0.5rem 0.35rem;
  border: 2px solid #dce8dc;
  border-radius: 12px;
  background: #fafcfa;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: #3d5c3d;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}

.fe-type-chip:active {
  transform: scale(0.97);
}

.fe-type-chip .fe-type-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #e8f0e8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
  color: #15803d;
}

.fe-type-chip.is-active .fe-type-icon,
.fe-type-chip.is-done .fe-type-icon {
  background: #bbf7d0;
}

.fe-type-icon-more {
  font-size: 1.1rem;
  font-weight: 600;
  background: transparent !important;
}

.fe-type-chip.is-active {
  border-color: #16a34a;
  background: #ecfdf3;
  color: #15803d;
}

.fe-type-chip.is-done {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #15803d;
}

.fe-type-chip.is-done::after {
  content: "已录";
  position: absolute;
  top: 3px;
  right: 3px;
  font-size: 0.6rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.1rem 0.25rem;
  border-radius: 3px;
  background: #16a34a;
  color: #fff;
}

.fe-type-chip.is-next {
  border-color: #16a34a;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.2);
}

.fe-type-chip.is-done.is-active {
  border-color: #16a34a;
  background: #ecfdf3;
}

.fe-type-chip.is-more {
  border-style: dashed;
  color: #6b7c6b;
}

/* Photos */
.fe-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  min-height: 0;
}

.fe-photo-grid:empty::before {
  content: none;
}

.fe-photo-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: #e8f0e8;
  margin: 0;
}

.fe-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fe-photo-item button {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 1.75rem;
  height: 1.75rem;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Buttons */
.fe-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  padding: 0.875rem 1.25rem;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
  -webkit-appearance: none;
  appearance: none;
}

.fe-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.fe-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.fe-btn-primary {
  background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
}

.fe-btn-block {
  width: 100%;
  min-height: 3rem;
}

.fe-btn-camera {
  width: 100%;
  min-height: 3.25rem;
  background: #f0f7f0;
  border: 2px dashed #a7d4a7;
  color: #15803d;
  margin-top: 0.25rem;
}

.fe-btn-ghost {
  flex-shrink: 0;
  background: #eef3ee;
  color: #3d5c3d;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  border-radius: 10px;
}

/* More options */
.fe-more {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(22, 80, 40, 0.06);
  overflow: hidden;
}

.fe-more summary {
  padding: 0.875rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #6b7c6b;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.fe-more summary::-webkit-details-marker {
  display: none;
}

.fe-more summary::after {
  content: "▾";
  float: right;
  color: #a7b8a7;
}

.fe-more[open] summary::after {
  transform: rotate(180deg);
}

.fe-more-body {
  padding: 0 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  border-top: 1px solid #eef3ee;
  padding-top: 0.875rem;
}

/* Code binding — search instead of dropdown */
.fe-code-bind {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.fe-label-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: #3d5c3d;
}

.fe-code-mode {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.fe-code-mode-opt {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem;
  border: 1.5px solid #dce8dc;
  border-radius: 10px;
  background: #fafcfa;
  font-size: 0.875rem;
  font-weight: 600;
  color: #3d5c3d;
  cursor: pointer;
  user-select: none;
}

.fe-code-mode-opt:has(input:checked) {
  border-color: #16a34a;
  background: #ecfdf3;
  color: #15803d;
}

.fe-code-mode-opt input {
  accent-color: #16a34a;
}

.fe-code-search-wrap[hidden] {
  display: none !important;
}

.fe-code-input-row {
  display: flex;
  gap: 0.5rem;
}

.fe-code-input-row .fe-input {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  letter-spacing: 0.03em;
}

.fe-code-resolve-btn {
  flex-shrink: 0;
  min-width: 4rem;
}

.fe-code-selected {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: #ecfdf3;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  font-size: 0.875rem;
}

.fe-code-selected[hidden] {
  display: none !important;
}

.fe-code-selected-label {
  font-family: ui-monospace, Consolas, monospace;
  font-weight: 700;
  color: #15803d;
}

.fe-code-results {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 12rem;
  overflow-y: auto;
  border: 1.5px solid #dce8dc;
  border-radius: 10px;
  background: #fff;
}

.fe-code-results[hidden] {
  display: none !important;
}

.fe-code-results li button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 0.875rem;
  border: none;
  border-bottom: 1px solid #eef3ee;
  background: transparent;
  font: inherit;
  font-size: 0.875rem;
  text-align: left;
  cursor: pointer;
}

.fe-code-results li:last-child button {
  border-bottom: none;
}

.fe-code-results li button:hover,
.fe-code-results li button:focus {
  background: #f4faf4;
  outline: none;
}

.fe-code-results .fe-cr-code {
  font-family: ui-monospace, Consolas, monospace;
  font-weight: 700;
  color: #1a2e1a;
}

.fe-code-results .fe-cr-meta {
  font-size: 0.75rem;
  color: #8a9a8a;
}

.fe-code-hint {
  margin: 0;
  font-size: 0.75rem;
  color: #8a9a8a;
  line-height: 1.4;
}

/* Recent */
.fe-recent {
  background: #fff;
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 2px 12px rgba(22, 80, 40, 0.06);
}

.fe-recent-title {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #6b7c6b;
}

.fe-recent-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.fe-recent-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.875rem;
  padding: 0.5rem 0.65rem;
  background: #f4faf4;
  border-radius: 8px;
}

.fe-recent-list li strong {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fe-recent-list li span {
  flex-shrink: 0;
  font-size: 0.75rem;
  color: #8a9a8a;
}

.fe-footer-mobile {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(238, 243, 238, 0) 0%, rgba(238, 243, 238, 0.95) 30%, #eef3ee 100%);
  z-index: 20;
}

.fe-btn-submit {
  width: 100%;
  min-height: 3.25rem;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
}

/* Messages & toast */
.fe-msg {
  margin: 0;
  font-size: 0.875rem;
  text-align: center;
  padding: 0.5rem;
  border-radius: 8px;
}

.fe-msg.is-error {
  background: #fef2f2;
  color: #b91c1c;
}

.fe-msg.is-ok {
  background: #ecfdf3;
  color: #15803d;
}

.fe-toast {
  position: fixed;
  left: 50%;
  bottom: calc(5.5rem + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  max-width: calc(100% - 2rem);
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: rgba(26, 46, 26, 0.92);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 30;
  pointer-events: none;
  animation: fe-toast-in 0.25s ease;
}

.fe-toast.is-error {
  background: rgba(185, 28,  28, 0.92);
}

.fe-toast[hidden] {
  display: none !important;
}

@keyframes fe-toast-in {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.fe-loading {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 40;
}

.fe-loading[hidden] {
  display: none !important;
}

.fe-loading span {
  width: 2.5rem;
  height: 2.5rem;
  border: 3px solid #dce8dc;
  border-top-color: #16a34a;
  border-radius: 50%;
  animation: fe-spin 0.7s linear infinite;
}

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

/* Type picker overlay */
.fe-type-sheet {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.fe-type-sheet[hidden] {
  display: none !important;
}

.fe-type-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.fe-type-sheet-panel {
  position: relative;
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom));
  max-height: 70dvh;
  overflow-y: auto;
}

.fe-type-sheet-panel h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  text-align: center;
}

.fe-type-sheet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

@media (min-width: 480px) {
  .fe-login {
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (min-width: 768px) {
  .fe-type-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .fe-type-sheet-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .fe-photo-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  body {
    background: #e4ebe4;
  }

  .fe-main {
    padding-bottom: 0;
    max-width: 1320px;
    margin: 0 auto;
    width: 100%;
  }

  .fe-topbar {
    padding: 0.875rem 1.5rem;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 1px 8px rgba(22, 80, 40, 0.06);
  }

  .fe-topbar-title {
    display: inline;
  }

  .fe-topbar-left .fe-user strong {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7c6b;
  }

  .fe-topbar-left .fe-user strong::before {
    content: "· ";
    color: #c5d9c5;
  }

  .fe-submit-desktop {
    display: inline-flex;
  }

  .fe-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem 1.5rem;
  }

  .fe-sidebar {
    flex: 0 0 340px;
    position: sticky;
    top: 4.5rem;
    max-height: calc(100dvh - 5.5rem);
    overflow-y: auto;
    padding-right: 0.25rem;
  }

  .fe-workspace {
    flex: 1;
    min-width: 0;
    background: #fff;
    border-radius: 14px;
    padding: 1.25rem;
    box-shadow: 0 2px 16px rgba(22, 80, 40, 0.07);
  }

  .fe-step-batch {
    margin: 0;
  }

  .fe-timeline-wrap {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  .fe-timeline {
    max-height: 280px;
    overflow-y: auto;
    padding-right: 0.25rem;
  }

  .fe-timeline li .fe-tl-body strong {
    white-space: normal;
  }

  .fe-form-row {
    flex-direction: row;
    gap: 1rem;
  }

  .fe-step-location {
    flex: 0 0 280px;
  }

  .fe-type-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
  }

  .fe-type-chip {
    min-height: 4.75rem;
    font-size: 0.85rem;
  }

  .fe-type-chip:active {
    transform: none;
  }

  .fe-photo-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 0.65rem;
  }

  .fe-photo-actions {
    flex-direction: row;
  }

  .fe-btn-camera {
    flex: 1;
  }

  .fe-btn-camera {
    display: none;
  }

  .fe-btn-upload {
    display: inline-flex;
    flex: 0 0 auto;
    min-width: 10rem;
  }

  .fe-photo-hint-mobile {
    display: none;
  }

  .fe-photo-hint-desktop {
    display: block;
  }

  .fe-step-photos {
    border: 2px dashed #dce8dc;
    transition: border-color 0.15s, background 0.15s;
  }

  .fe-step-photos.is-dragover {
    border-color: #16a34a;
  }

  .fe-more {
    box-shadow: none;
    border: 1px solid #eef3ee;
  }

  .fe-more-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .fe-code-bind {
    grid-column: 1 / -1;
  }

  .fe-workspace-submit {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    padding-top: 0.5rem;
    border-top: 1px solid #eef3ee;
    margin-top: 0.25rem;
  }

  .fe-workspace-submit .fe-submit-btn {
    min-width: 10rem;
    min-height: 2.75rem;
  }

  .fe-kbd-hint {
    display: inline;
  }

  .fe-footer-mobile {
    display: none;
  }

  .fe-toast {
    bottom: 2rem;
  }

  .fe-type-sheet {
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
  }

  .fe-type-sheet-panel {
    border-radius: 16px;
    max-width: 640px;
    width: 100%;
    max-height: min(80vh, 560px);
    padding: 1.25rem 1.5rem 1.5rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  }

  .fe-type-sheet-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .fe-login {
    max-width: 480px;
  }

  .fe-login-form {
    padding: 0.5rem 0;
  }

  .fe-input,
  .fe-select,
  .fe-textarea {
    font-size: 0.9375rem;
  }

  .fe-select#fe-batch {
    font-size: 1rem;
    padding: 0.875rem 1rem;
  }
}

@media (max-width: 1023px) {
  .fe-topbar-left .fe-user strong {
    display: block;
    font-size: 1rem;
    color: #1a2e1a;
  }

  .fe-topbar-left .fe-user strong::before {
    content: none;
  }

  .fe-topbar-left .fe-user span {
    display: block;
    margin-left: 0;
  }
}

@media (min-width: 1280px) {
  .fe-sidebar {
    flex-basis: 380px;
  }

  .fe-type-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .fe-type-sheet-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}
