:root {
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
  --font-heading: "Manrope", "Segoe UI", sans-serif;
  --page-bg: #eef4fb;
  --page-bg-deep: #dde8f3;
  --surface-strong: #ffffff;
  --surface-soft: #f6f9fc;
  --surface-muted: #edf3f9;
  --line-soft: rgba(16, 43, 72, 0.11);
  --line-medium: rgba(16, 43, 72, 0.18);
  --line-strong: rgba(11, 31, 52, 0.28);
  --text-strong: #11253b;
  --text-base: #27425d;
  --text-muted: #6a7f94;
  --text-soft: #8d9cb0;
  --brand-blue: #0a4c8d;
  --brand-blue-strong: #073a6d;
  --brand-blue-soft: rgba(10, 76, 141, 0.12);
  --brand-orange: #f18716;
  --brand-orange-soft: rgba(241, 135, 22, 0.14);
  --success: #1ea971;
  --success-soft: rgba(30, 169, 113, 0.14);
  --warning: #d9921b;
  --warning-soft: rgba(217, 146, 27, 0.16);
  --danger: #d94e5d;
  --danger-soft: rgba(217, 78, 93, 0.14);
  --shadow-lg: 0 20px 42px rgba(9, 27, 46, 0.11);
  --shadow-md: 0 12px 28px rgba(9, 27, 46, 0.09);
  --shadow-sm: 0 8px 18px rgba(9, 27, 46, 0.07);
  --radius-xl: 26px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --transition: 180ms ease;
}

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

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text-base);
  background: linear-gradient(180deg, #f7fbff 0%, var(--page-bg) 45%, var(--page-bg-deep) 100%);
  -webkit-text-size-adjust: 100%;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  color: var(--text-strong);
  margin: 0;
  line-height: 1.15;
}

.op-app {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 16px 16px 140px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* TOPO */
.op-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
}

.op-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.op-brand-mark {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--surface-muted);
  overflow: hidden;
}

.op-brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 5px;
}

.op-brand-copy {
  min-width: 0;
}

.op-eyebrow {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.op-brand-copy h1 {
  font-size: 1.06rem;
  line-height: 1.2;
}

.op-topbar-side {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.op-identity {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-medium);
  background: var(--surface-soft);
  cursor: pointer;
  font-family: inherit;
  transition: border-color var(--transition), background var(--transition);
}

.op-identity:hover {
  border-color: var(--brand-blue);
  background: var(--brand-blue-soft);
}

.op-identity span {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.op-identity strong {
  font-size: 0.95rem;
  font-family: var(--font-heading);
  color: var(--text-strong);
  letter-spacing: 0.06em;
}

.op-panel-link {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-medium);
  color: var(--text-base);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  transition: border-color var(--transition), color var(--transition);
}

.op-panel-link:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}

/* ETAPAS */
.op-steps {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 2px;
  scrollbar-width: none;
}

.op-steps::-webkit-scrollbar {
  display: none;
}

.op-step {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line-soft);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition);
}

.op-step i {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--surface-muted);
  color: var(--text-muted);
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 700;
}

.op-step.is-current {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #fff;
}

.op-step.is-current i {
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
}

.op-step.is-done {
  background: var(--success-soft);
  border-color: rgba(30, 169, 113, 0.3);
  color: #147a52;
}

.op-step.is-done i {
  background: var(--success);
  color: #fff;
}

/* MENSAGENS */
.op-message {
  padding: 13px 16px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.5;
  border: 1px solid transparent;
}

.op-message.info {
  background: var(--brand-blue-soft);
  border-color: rgba(10, 76, 141, 0.22);
  color: var(--brand-blue-strong);
}

.op-message.success {
  background: var(--success-soft);
  border-color: rgba(30, 169, 113, 0.3);
  color: #147a52;
}

.op-message.error {
  background: var(--danger-soft);
  border-color: rgba(217, 78, 93, 0.3);
  color: #a63241;
}

/* PAINEIS */
.op-main {
  display: block;
}

.op-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px 18px;
  border-radius: var(--radius-xl);
  background: var(--surface-strong);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-md);
}

.op-panel[hidden] {
  display: none;
}

.op-panel-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.op-panel-head h2 {
  font-size: 1.4rem;
}

.op-text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.op-panel-foot {
  display: flex;
  gap: 10px;
  padding-top: 4px;
}

/* BOTOES */
.op-button {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 14px 22px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), border-color var(--transition);
  min-height: 48px;
}

.op-button:active {
  transform: scale(0.98);
}

.op-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.op-button.primary {
  background: var(--brand-blue);
  color: #fff;
}

.op-button.primary:hover:not(:disabled) {
  background: var(--brand-blue-strong);
}

.op-button.ghost {
  background: transparent;
  border-color: var(--line-medium);
  color: var(--text-base);
}

.op-button.ghost:hover:not(:disabled) {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}

.op-button.block {
  width: 100%;
}

/* CAMPOS */
.op-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.op-field > span {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.op-field input,
.op-field textarea,
.op-field select {
  width: 100%;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-medium);
  background: var(--surface-soft);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-strong);
  transition: border-color var(--transition), background var(--transition);
}

.op-field input:focus,
.op-field textarea:focus,
.op-field select:focus {
  outline: none;
  border-color: var(--brand-blue);
  background: #fff;
}

.op-hint {
  margin: -6px 0 0;
  font-size: 0.82rem;
  color: var(--text-soft);
}

.op-matricula-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#op-matricula-input {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 800;
  text-align: center;
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  padding: 18px 15px;
}

.op-date-field {
  max-width: 260px;
}

/* TIPOS */
.op-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.op-type-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 18px 16px;
  text-align: left;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-medium);
  background: var(--surface-soft);
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition);
  min-height: 104px;
}

.op-type-card:hover {
  border-color: var(--brand-blue);
  background: var(--brand-blue-soft);
  transform: translateY(-2px);
}

.op-type-card strong {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--text-strong);
}

.op-type-card span {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.op-type-badge {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--brand-blue);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 4px;
}

/* BUSCA E LISTA DE ITENS */
.op-search {
  position: relative;
  display: block;
}

.op-search input {
  width: 100%;
  padding: 14px 15px 14px 42px;
  border-radius: 999px;
  border: 1px solid var(--line-medium);
  background: var(--surface-soft);
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--text-strong);
}

.op-search input:focus {
  outline: none;
  border-color: var(--brand-blue);
  background: #fff;
}

.op-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -9px;
  border: 2px solid var(--text-soft);
  border-radius: 50%;
}

.op-search-icon::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: -4px;
  width: 7px;
  height: 2px;
  background: var(--text-soft);
  transform: rotate(45deg);
}

.op-list-meta {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-soft);
}

.op-item-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  max-height: 58vh;
  overflow-y: auto;
  padding-right: 2px;
}

.op-item-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 15px;
  text-align: left;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-soft);
  background: var(--surface-soft);
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition);
}

.op-item-card:hover {
  border-color: var(--brand-blue);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.op-item-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}

.op-item-copy strong {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  color: var(--text-strong);
  overflow-wrap: anywhere;
}

.op-item-copy span {
  font-size: 0.82rem;
  color: var(--text-muted);
  overflow-wrap: anywhere;
}

.op-item-flag {
  flex: 0 0 auto;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-align: center;
  line-height: 1.3;
}

.op-item-flag.is-done {
  background: var(--success-soft);
  color: #147a52;
}

.op-item-flag.is-pending {
  background: var(--warning-soft);
  color: #9c6608;
}

.op-empty {
  padding: 26px 18px;
  text-align: center;
  border-radius: var(--radius-md);
  border: 1px dashed var(--line-medium);
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ITEM SELECIONADO */
.op-selected-asset {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--brand-blue-soft);
  border: 1px solid rgba(10, 76, 141, 0.2);
}

.op-selected-asset strong {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--brand-blue-strong);
  overflow-wrap: anywhere;
}

.op-selected-asset span {
  font-size: 0.82rem;
  color: var(--text-muted);
  overflow-wrap: anywhere;
}

/* FOLHAS A4 */
.op-sheet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.op-sheet {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-medium);
  background: var(--surface-strong);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.op-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  background: var(--surface-muted);
  border-bottom: 1px solid var(--line-soft);
}

.op-sheet-head strong {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--text-strong);
}

.op-sheet-remove {
  border: none;
  background: transparent;
  color: var(--danger);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 8px;
  font-family: inherit;
}

.op-sheet-remove:hover {
  background: var(--danger-soft);
}

.op-sheet-paper {
  position: relative;
  aspect-ratio: 1 / 1.414;
  padding: 10px;
  background:
    repeating-linear-gradient(180deg, transparent 0 22px, rgba(16, 43, 72, 0.05) 22px 23px),
    #fdfdfd;
  overflow-y: auto;
}

.op-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.op-photo-grid.is-single {
  grid-template-columns: 1fr;
}

.op-photo {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: var(--surface-muted);
  aspect-ratio: 1 / 1.3;
}

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

.op-photo-doc {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 100%;
  padding: 8px;
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-muted);
  overflow-wrap: anywhere;
}

.op-photo-doc b {
  font-size: 0.95rem;
  color: var(--brand-blue);
}

.op-photo-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: rgba(11, 31, 52, 0.72);
  color: #fff;
  font-size: 0.75rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.op-sheet-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 100%;
  color: var(--text-soft);
  font-size: 0.8rem;
  text-align: center;
  padding: 12px;
}

.op-sheet-actions {
  display: flex;
  gap: 6px;
  padding: 10px;
  border-top: 1px solid var(--line-soft);
  background: var(--surface-soft);
}

.op-mini-button {
  flex: 1;
  padding: 10px 8px;
  border-radius: 10px;
  border: 1px solid var(--line-medium);
  background: #fff;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-base);
  cursor: pointer;
  transition: all var(--transition);
  min-height: 40px;
}

.op-mini-button:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}

.op-sheet-result {
  display: flex;
  gap: 5px;
  padding: 0 10px 10px;
  background: var(--surface-soft);
}

.op-result-pill {
  flex: 1;
  padding: 8px 4px;
  border-radius: 999px;
  border: 1px solid var(--line-medium);
  background: #fff;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  min-height: 36px;
}

.op-result-pill[aria-pressed="true"][data-result="conforme"] {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}

.op-result-pill[aria-pressed="true"][data-result="conforme com restricao"] {
  background: var(--warning);
  border-color: var(--warning);
  color: #fff;
}

.op-result-pill[aria-pressed="true"][data-result="nao conforme"] {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}

.op-sheet-note {
  padding: 0 10px 10px;
  background: var(--surface-soft);
}

.op-sheet-note textarea {
  width: 100%;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid var(--line-medium);
  background: #fff;
  font-family: inherit;
  font-size: 0.82rem;
  color: var(--text-strong);
  resize: vertical;
  min-height: 44px;
}

.op-sheet-note textarea:focus {
  outline: none;
  border-color: var(--brand-blue);
}

/* CARD DE ADICIONAR */
.op-sheet-add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  aspect-ratio: 1 / 1.414;
  min-height: 240px;
  border-radius: var(--radius-md);
  border: 2px dashed var(--line-strong);
  background: rgba(255, 255, 255, 0.55);
  color: var(--text-muted);
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
  padding: 16px;
}

.op-sheet-add:hover {
  border-color: var(--brand-blue);
  background: var(--brand-blue-soft);
  color: var(--brand-blue);
}

.op-sheet-add i {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--brand-blue);
  color: #fff;
  font-style: normal;
  font-size: 2rem;
  font-weight: 300;
  line-height: 1;
}

.op-sheet-add strong {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: inherit;
}

.op-sheet-add span {
  font-size: 0.78rem;
  text-align: center;
  line-height: 1.45;
}

/* BARRA DE ENVIO */
.op-submit-bar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(760px, 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line-medium);
  box-shadow: 0 -10px 30px rgba(9, 27, 46, 0.1);
  z-index: 40;
}

.op-submit-bar[hidden] {
  display: none;
}

.op-submit-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.op-submit-copy strong {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--text-strong);
}

.op-submit-copy span {
  font-size: 0.79rem;
  color: var(--text-muted);
}

/* SUCESSO */
.op-panel-success {
  align-items: center;
  text-align: center;
}

.op-success-mark {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: var(--success-soft);
  position: relative;
}

.op-success-mark::after {
  content: "";
  position: absolute;
  left: 27px;
  top: 21px;
  width: 20px;
  height: 34px;
  border: solid var(--success);
  border-width: 0 5px 5px 0;
  transform: rotate(45deg);
  border-radius: 2px;
}

.op-success-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 380px;
}

/* CAMERA */
.op-camera {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: #05080d;
  display: flex;
  align-items: center;
  justify-content: center;
}

.op-camera[hidden] {
  display: none;
}

.op-camera video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.op-camera-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  padding: 84px 20px 150px;
}

.op-camera-frame {
  position: relative;
  width: min(74vw, 62vh / 1.414 * 1);
  aspect-ratio: 1 / 1.414;
  max-height: 100%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 6px;
  box-shadow: 0 0 0 100vmax rgba(3, 7, 12, 0.55);
}

.op-corner {
  position: absolute;
  width: 26px;
  height: 26px;
  border: 4px solid var(--brand-orange);
}

.op-corner.tl {
  top: -3px;
  left: -3px;
  border-right: none;
  border-bottom: none;
  border-radius: 6px 0 0 0;
}

.op-corner.tr {
  top: -3px;
  right: -3px;
  border-left: none;
  border-bottom: none;
  border-radius: 0 6px 0 0;
}

.op-corner.bl {
  bottom: -3px;
  left: -3px;
  border-right: none;
  border-top: none;
  border-radius: 0 0 0 6px;
}

.op-corner.br {
  bottom: -3px;
  right: -3px;
  border-left: none;
  border-top: none;
  border-radius: 0 0 6px 0;
}

.op-camera-guide {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -42px;
  margin: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.82rem;
  font-weight: 600;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

.op-camera-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(14px + env(safe-area-inset-top)) 16px 14px;
}

.op-camera-close {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
}

.op-camera-badge {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
}

.op-camera-actions {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 26px calc(26px + env(safe-area-inset-bottom));
}

.op-camera-shutter {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 5px solid rgba(255, 255, 255, 0.9);
  background: #fff;
  cursor: pointer;
  transition: transform 120ms ease;
}

.op-camera-shutter:active {
  transform: scale(0.92);
}

.op-camera-switch {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
}

.op-camera-done {
  padding: 13px 22px;
  border-radius: 999px;
  border: none;
  background: var(--brand-orange);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  min-width: 92px;
}

.op-camera-flash {
  position: absolute;
  inset: 0;
  background: #fff;
  animation: op-flash 260ms ease-out forwards;
  pointer-events: none;
}

@keyframes op-flash {
  from {
    opacity: 0.85;
  }

  to {
    opacity: 0;
  }
}

/* LOADING */
.op-loading {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 20, 34, 0.5);
  backdrop-filter: blur(3px);
}

.op-loading[hidden] {
  display: none;
}

.op-loading-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 30px 34px;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-lg);
  text-align: center;
  max-width: 320px;
}

.op-loading-card strong {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--text-strong);
}

.op-loading-card p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.op-spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid var(--brand-blue-soft);
  border-top-color: var(--brand-blue);
  animation: op-spin 800ms linear infinite;
}

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

@media (max-width: 560px) {
  .op-app {
    padding: 12px 12px 150px;
  }

  .op-panel {
    padding: 18px 14px;
    border-radius: var(--radius-lg);
  }

  .op-panel-head h2 {
    font-size: 1.24rem;
  }

  .op-brand-copy h1 {
    font-size: 0.95rem;
  }

  .op-panel-link {
    padding: 9px 12px;
    font-size: 0.8rem;
  }

  .op-sheet-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }

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

  .op-item-list {
    max-height: none;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
