:root {
  --orekey-core-bg: #05070a;
  --orekey-core-surface: rgba(11, 15, 21, 0.94);
  --orekey-core-surface-2: #111720;
  --orekey-core-border: rgba(139, 161, 185, 0.22);
  --orekey-core-text: #e7edf4;
  --orekey-core-muted: #97a5b5;
  --orekey-core-cyan: #2dd4ff;
  --orekey-core-green: #44d17c;
  --orekey-core-red: #ff6b7d;
}

.orekey-submit,
.orekey-submit * {
  box-sizing: border-box;
}

.orekey-submit {
  width: min(1180px, calc(100% - 28px));
  margin: 32px auto 72px;
  color: var(--orekey-core-text);
  font-family: "Noto Sans JP", "Yu Gothic UI", "Hiragino Sans", Meiryo, sans-serif;
}

.orekey-submit__hero,
.orekey-submit__form,
.orekey-submit__side section,
.orekey-submit-auth {
  border: 1px solid var(--orekey-core-border);
  border-radius: 10px;
  background: var(--orekey-core-surface);
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.28);
}

.orekey-submit__hero {
  padding: clamp(22px, 4vw, 42px);
  background:
    linear-gradient(135deg, rgba(45, 212, 255, 0.14), transparent 42%),
    var(--orekey-core-surface);
}

.orekey-submit__hero h1 {
  margin: 0 0 12px;
  color: var(--orekey-core-text);
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.15;
}

.orekey-submit__hero > p:last-child,
.orekey-submit__side p {
  margin: 0;
  color: var(--orekey-core-muted);
  line-height: 1.8;
}

.orekey-submit__eyebrow {
  margin: 0 0 12px;
  color: var(--orekey-core-cyan);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.orekey-submit__notice {
  margin: 18px 0 0;
  padding: 13px 16px;
  border: 1px solid var(--orekey-core-border);
  border-radius: 8px;
  background: var(--orekey-core-surface-2);
}

.orekey-submit__notice--success {
  border-color: rgba(68, 209, 124, 0.44);
  color: #bdf6d3;
}

.orekey-submit__notice--error {
  border-color: rgba(255, 107, 125, 0.5);
  color: #ffc3ca;
}

.orekey-submit__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
  margin-top: 18px;
}

.orekey-submit__form {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.orekey-submit__form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.orekey-submit__field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.orekey-submit__field > span {
  color: var(--orekey-core-muted);
  font-size: 13px;
  font-weight: 700;
}

.orekey-submit__field b {
  color: var(--orekey-core-cyan);
}

.orekey-submit__field input,
.orekey-submit__field select,
.orekey-submit__field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--orekey-core-border);
  border-radius: 7px;
  color: var(--orekey-core-text);
  background: rgba(5, 7, 10, 0.78);
  font: inherit;
  outline: none;
}

.orekey-submit__field textarea {
  line-height: 1.75;
  resize: vertical;
}

.orekey-submit__field input:focus,
.orekey-submit__field select:focus,
.orekey-submit__field textarea:focus,
.orekey-submit__dropzone:focus-within {
  border-color: var(--orekey-core-cyan);
  box-shadow: 0 0 0 3px rgba(45, 212, 255, 0.13);
}

.orekey-submit__field small,
.orekey-submit__counter {
  color: var(--orekey-core-muted);
  font-size: 12px;
  line-height: 1.5;
}

.orekey-submit__counter {
  justify-self: end;
}

.orekey-submit__dropzone {
  display: grid;
  min-height: 150px;
  place-items: center;
  align-content: center;
  gap: 7px;
  padding: 24px;
  border: 1px dashed rgba(45, 212, 255, 0.46);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(45, 212, 255, 0.1), transparent 50%),
    rgba(5, 7, 10, 0.52);
  text-align: center;
  cursor: pointer;
}

.orekey-submit__dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.orekey-submit__dropzone strong {
  color: var(--orekey-core-cyan);
  font-size: 16px;
}

.orekey-submit__previews {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.orekey-submit__existing-images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.orekey-submit__existing-image {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--orekey-core-border);
  border-radius: 7px;
  background: rgba(5, 7, 10, 0.5);
}

.orekey-submit__existing-image > img {
  width: 112px;
  height: 96px;
  border-radius: 5px;
  object-fit: cover;
}

.orekey-submit__existing-image > div,
.orekey-submit__existing-image label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.orekey-submit__existing-image label > span {
  color: var(--orekey-core-muted);
  font-size: 11px;
}

.orekey-submit__existing-image input[type="text"] {
  min-height: 36px;
  padding: 7px 9px;
}

.orekey-submit__existing-image .orekey-submit__remove-image {
  display: flex;
  gap: 7px;
  align-items: center;
}

.orekey-submit__remove-image input {
  width: 17px;
  height: 17px;
  min-height: auto;
  accent-color: var(--orekey-core-red);
}

.orekey-submit__preview {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--orekey-core-border);
  border-radius: 7px;
  background: rgba(5, 7, 10, 0.5);
}

.orekey-submit__preview img {
  width: 88px;
  height: 74px;
  border-radius: 5px;
  object-fit: cover;
}

.orekey-submit__preview-meta {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.orekey-submit__preview-name {
  overflow: hidden;
  color: var(--orekey-core-muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.orekey-submit__preview input {
  min-height: 36px;
  padding: 7px 9px;
}

.orekey-submit__client-error {
  margin: 0;
  color: #ffc3ca;
  font-size: 13px;
}

.orekey-submit__order {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(45, 212, 255, 0.24);
  border-radius: 8px;
  background: rgba(45, 212, 255, 0.035);
}

.orekey-submit__order-heading {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
}

.orekey-submit__order-heading h2,
.orekey-submit__order-heading p {
  margin: 0;
}

.orekey-submit__order-heading h2 {
  color: var(--orekey-core-text);
  font-size: 16px;
}

.orekey-submit__order-heading p,
.orekey-submit__order-heading > span,
.orekey-submit__order noscript p {
  color: var(--orekey-core-muted);
  font-size: 12px;
  line-height: 1.6;
}

.orekey-submit__order-heading > span {
  flex: 0 0 auto;
  padding: 4px 8px;
  border: 1px solid var(--orekey-core-border);
  border-radius: 999px;
}

.orekey-submit__order-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.orekey-submit__order-item {
  display: grid;
  grid-template-columns: 44px 54px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--orekey-core-border);
  border-radius: 7px;
  background: rgba(5, 7, 10, 0.58);
  transition: border-color 140ms ease, box-shadow 140ms ease, opacity 140ms ease, transform 140ms ease;
}

.orekey-submit__order-item.is-dragging {
  z-index: 2;
  border-color: var(--orekey-core-cyan);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.34);
  opacity: 0.82;
  transform: scale(1.01);
}

.orekey-submit__order-item.is-drop-before {
  box-shadow: inset 0 3px 0 var(--orekey-core-cyan);
}

.orekey-submit__order-item.is-drop-after {
  box-shadow: inset 0 -3px 0 var(--orekey-core-cyan);
}

.orekey-is-block-dragging,
.orekey-is-block-dragging * {
  user-select: none;
}

.orekey-submit__order-drag {
  display: inline-flex;
  width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px dashed rgba(45, 212, 255, 0.42);
  border-radius: 6px;
  color: var(--orekey-core-muted);
  background: rgba(45, 212, 255, 0.045);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: grab;
  touch-action: none;
}

.orekey-submit__order-drag:hover,
.orekey-submit__order-drag:focus-visible {
  border-color: var(--orekey-core-cyan);
  color: var(--orekey-core-text);
  outline: 2px solid rgba(45, 212, 255, 0.24);
  outline-offset: 2px;
}

.orekey-submit__order-drag:active {
  cursor: grabbing;
}

.orekey-submit__order-badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  color: #061015;
  background: var(--orekey-core-cyan);
  font-size: 11px;
  font-weight: 800;
}

.orekey-submit__order-badge--video {
  color: #fff;
  background: var(--orekey-core-red);
}

.orekey-submit__order-badge--image,
.orekey-submit__order-badge--new {
  color: #07110b;
  background: #44d17c;
}

.orekey-submit__order-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.orekey-submit__order-copy strong,
.orekey-submit__order-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.orekey-submit__order-copy strong {
  color: var(--orekey-core-text);
  font-size: 13px;
}

.orekey-submit__order-copy span,
.orekey-submit__order-empty {
  color: var(--orekey-core-muted);
  font-size: 12px;
}

.orekey-submit__order-controls {
  display: flex;
  gap: 6px;
}

.orekey-submit__order-controls button {
  width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid rgba(45, 212, 255, 0.34);
  border-radius: 6px;
  color: var(--orekey-core-text);
  background: rgba(45, 212, 255, 0.08);
  font: inherit;
  cursor: pointer;
}

.orekey-submit__order-controls button:hover:not(:disabled),
.orekey-submit__order-controls button:focus-visible {
  border-color: var(--orekey-core-cyan);
  outline: 2px solid rgba(45, 212, 255, 0.24);
  outline-offset: 2px;
}

.orekey-submit__order-controls button:disabled {
  cursor: not-allowed;
  opacity: 0.3;
}

.orekey-submit__order-empty {
  padding: 14px;
  border: 1px dashed var(--orekey-core-border);
  border-radius: 7px;
  text-align: center;
}

.orekey-submit__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.orekey-submit__privacy {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid rgba(68, 209, 124, 0.26);
  border-radius: 7px;
  color: var(--orekey-core-muted);
  background: rgba(68, 209, 124, 0.05);
  font-size: 13px;
  line-height: 1.7;
}

.orekey-submit__privacy input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--orekey-core-cyan);
}

.orekey-submit__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  padding-top: 18px;
  border-top: 1px solid var(--orekey-core-border);
}

.orekey-submit-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--orekey-core-border);
  border-radius: 7px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.orekey-submit-button--primary {
  border-color: rgba(45, 212, 255, 0.55);
  color: #021116;
  background: linear-gradient(180deg, #78e9ff, var(--orekey-core-cyan));
}

.orekey-submit-button--secondary {
  color: var(--orekey-core-text);
  background: rgba(45, 212, 255, 0.08);
}

.orekey-submit-button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.orekey-submit__side {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 14px;
}

.orekey-submit__side section {
  padding: 17px;
}

.orekey-submit__side h2 {
  margin: 0 0 12px;
  color: var(--orekey-core-text);
  font-size: 17px;
}

.orekey-submit__side ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.orekey-submit__side li {
  padding: 11px;
  border: 1px solid rgba(139, 161, 185, 0.14);
  border-radius: 6px;
  color: var(--orekey-core-muted);
  background: rgba(5, 7, 10, 0.44);
  font-size: 13px;
  line-height: 1.6;
}

.orekey-submit__side li strong {
  display: block;
  margin-bottom: 3px;
  color: var(--orekey-core-text);
}

.orekey-submit-auth {
  max-width: 720px;
  margin: 48px auto;
  padding: 28px;
  color: var(--orekey-core-text);
  text-align: center;
}

@media (max-width: 920px) {
  .orekey-submit__layout {
    grid-template-columns: 1fr;
  }

  .orekey-submit__side {
    position: static;
  }
}

@media (max-width: 620px) {
  .orekey-submit {
    width: min(100% - 18px, 1180px);
    margin-top: 14px;
  }

  .orekey-submit__form,
  .orekey-submit__hero {
    padding: 16px;
  }

  .orekey-submit__form-grid,
  .orekey-submit__previews,
  .orekey-submit__existing-images {
    grid-template-columns: 1fr;
  }

  .orekey-submit__existing-image {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .orekey-submit__existing-image > img {
    width: 92px;
    height: 82px;
  }

  .orekey-submit__order-heading {
    display: grid;
  }

  .orekey-submit__order-heading > span {
    justify-self: start;
  }

  .orekey-submit__order-item {
    grid-template-columns: 44px 46px minmax(0, 1fr);
  }

  .orekey-submit__order-controls {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .orekey-submit__actions {
    display: grid;
    justify-content: stretch;
  }

  .orekey-submit-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .orekey-submit__order-item {
    transition: none;
  }
}
