/* Promotion/Demotion Forms — original page styles from the current Spearpoint site,
   scoped under .oform so the page design lives inside the site frame.
   Colours aligned to the flag palette 2026-11-15 (green #134C2C, gold #F2D007, red #D20001); layout and all other values are the original's. */
@font-face{ font-family: 'FieldScript'; src: url('/assets/forms/fieldscript.otf') format('opentype'); font-display: swap; }.oform{
      color-scheme: light dark;
      --page: #e8e6de;
      --panel: #f7f4e9;
      --ink: #171a16;
      --muted: #5e645d;
      --line: #b7ad92;
      --green: #134c2c;
      --green-deep: #134c2c;
      --gold: #f2d007;
      --gold-dark: #f2d007;
      --red: #d20001;
      --focus: #f2d007;
      --warning-bg: #efe1b7;
      --warning-ink: #503b08;
      --shadow: rgba(20, 18, 11, .22);
    }@media (prefers-color-scheme: dark){.oform{
        --page: #101511;
        --panel: #192019;
        --ink: #f4eedb;
        --muted: #b9b9ad;
        --line: #4a5047;
        --green: #134c2c;
        --green-deep: #134c2c;
        --gold: #f2d007;
        --gold-dark: #f2d007;
        --red: #d20001;
        --focus: #f2d007;
        --warning-bg: #3b3218;
        --warning-ink: #f2d007;
        --shadow: rgba(0, 0, 0, .5);
      }}.oform *{ box-sizing: border-box; }.oform{ min-width: 0; background: var(--page); }.oform{
      margin: 0;
      min-width: 0;
      background:
        var(--page);
      color: var(--ink);
      font-family: Georgia, "Times New Roman", serif;
    }.oform button, .oform input, .oform select{ font: inherit; }.oform .omain{
      width: min(1480px, 100%);
      margin: 0 auto;
      padding: clamp(18px, 3vw, 42px);
    }.oform .workbench{
      display: grid;
      grid-template-columns: minmax(255px, 340px) minmax(0, 1fr);
      align-items: start;
      gap: clamp(18px, 2.5vw, 38px);
    }.oform .controls{
      position: sticky;
      top: 18px;
      background: var(--panel);
      border-top: 5px solid var(--green);
      box-shadow: 0 12px 34px var(--shadow);
      padding: 24px;
    }.oform h1{
      margin: 0 0 7px;
      font-size: clamp(27px, 3vw, 39px);
      line-height: 1.02;
      font-weight: 700;
      letter-spacing: -.02em;
    }.oform .lede{
      margin: 0 0 20px;
      color: var(--muted);
      font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
      font-size: 14px;
      line-height: 1.5;
    }.oform .lieutenant-guide{
      margin: 0 0 24px;
      padding: 16px 0 17px;
      border-top: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
      font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
    }.oform .guide-section + .guide-section{ margin-top: 15px; }.oform .lieutenant-guide h2, .oform .form-heading{
      margin: 0 0 6px;
      font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
      font-size: 13px;
      line-height: 1.25;
      font-weight: 800;
      letter-spacing: .025em;
    }.oform .lieutenant-guide p{
      margin: 0;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.5;
    }.oform .lieutenant-guide ol{
      margin: 7px 0 0;
      padding-left: 22px;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.48;
    }.oform .lieutenant-guide li + li{ margin-top: 7px; }.oform .lieutenant-guide strong{ color: var(--ink); }.oform .approval-order{
      margin-top: 15px !important;
      padding: 11px 12px;
      background: color-mix(in srgb, var(--gold) 12%, transparent);
      color: var(--ink) !important;
      border: 1px solid color-mix(in srgb, var(--gold-dark) 55%, var(--line));
    }.oform .form-heading{ margin-bottom: 14px; }.oform .mode-switch{
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 6px;
      margin: 0 0 22px;
      padding: 5px;
      border: 1px solid var(--line);
      background: color-mix(in srgb, var(--page) 55%, var(--panel));
    }.oform .mode-option{
      display: grid;
      place-items: center;
      min-height: 43px;
      margin: 0;
      padding: 8px 10px;
      border: 0;
      border-radius: 0;
      background: transparent;
      color: var(--muted);
      font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
      font-size: 13px;
      font-weight: 800;
      cursor: pointer;
    }.oform .mode-option[aria-pressed="true"]{
      background: var(--green);
      color: #fff8df;
      box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold) 58%, transparent);
    }.oform .mode-option:focus-visible{ outline: 3px solid var(--focus); outline-offset: 2px; }.oform .field{ margin: 0 0 18px; }.oform label{
      display: block;
      margin-bottom: 7px;
      font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
      font-size: 13px;
      font-weight: 760;
      letter-spacing: .025em;
    }.oform input, .oform select{
      width: 100%;
      min-height: 48px;
      border: 1px solid var(--line);
      border-radius: 3px;
      background: color-mix(in srgb, var(--panel) 88%, var(--page));
      color: var(--ink);
      padding: 10px 12px;
      outline: none;
    }.oform input:focus, .oform select:focus{
      border-color: var(--focus);
      box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 25%, transparent);
    }.oform .spelling-warning{
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      margin-top: 7px;
      padding: 8px 10px;
      border-top: 2px solid var(--gold-dark);
      background: var(--warning-bg);
      color: var(--warning-ink);
      font: 700 12px/1.35 ui-sans-serif, system-ui, -apple-system, sans-serif;
    }.oform .spelling-warning[hidden]{ display: none; }.oform .dismiss-warning{
      flex: 0 0 auto;
      border: 0;
      border-bottom: 1px solid currentColor;
      border-radius: 0;
      background: transparent;
      color: inherit;
      padding: 2px 0;
      font: 800 11px/1.2 ui-sans-serif, system-ui, -apple-system, sans-serif;
      cursor: pointer;
    }.oform .dismiss-warning:focus-visible{ outline: 3px solid var(--focus); outline-offset: 2px; }.oform .rank-note{
      min-height: 21px;
      margin: -8px 0 18px;
      color: var(--green);
      font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
      font-size: 12px;
      font-weight: 700;
    }@media (prefers-color-scheme: dark){.oform .rank-note{ color: #f2d007; }}.oform .download{
      width: 100%;
      border: 1px solid var(--gold-dark);
      border-radius: 3px;
      background: var(--green);
      color: #fff8df;
      min-height: 54px;
      padding: 12px 16px;
      font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
      font-size: 15px;
      font-weight: 800;
      cursor: pointer;
      box-shadow: inset 0 0 0 2px rgba(255,255,255,.08), 0 5px 0 var(--green-deep);
      transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
    }.oform .download:hover:not(:disabled){ background: var(--green-deep); }.oform .download:active:not(:disabled){ transform: translateY(3px); box-shadow: inset 0 0 0 2px rgba(255,255,255,.08), 0 2px 0 var(--green-deep); }.oform .download:focus-visible{ outline: 3px solid var(--focus); outline-offset: 3px; }.oform .download:disabled{ cursor: not-allowed; opacity: .48; box-shadow: none; }.oform .output-note, .oform .status{
      font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
      font-size: 12px;
      line-height: 1.45;
      color: var(--muted);
    }.oform .output-note{ margin: 12px 0 0; }.oform .status{ min-height: 18px; margin: 7px 0 0; color: var(--green); font-weight: 700; }@media (prefers-color-scheme: dark){.oform .status{ color: #f2d007; }}.oform .photo-sheet[hidden]{ display: none; }.oform .photo-sheet{
      position: fixed;
      inset: 0;
      z-index: 20;
      display: grid;
      place-items: center;
      padding: clamp(12px, 3vw, 32px);
      background: rgba(10, 12, 10, .82);
    }.oform .photo-sheet-card{
      width: min(1060px, 100%);
      max-height: calc(100dvh - 24px);
      overflow-y: auto;
      background: var(--panel);
      color: var(--ink);
      border-top: 5px solid var(--green);
      box-shadow: 0 22px 70px rgba(0, 0, 0, .48);
      padding: clamp(16px, 3vw, 28px);
    }.oform .photo-sheet-head{
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
      margin-bottom: 5px;
    }.oform .photo-sheet h2{
      margin: 0;
      font-size: clamp(22px, 3vw, 31px);
      line-height: 1.05;
    }.oform .photo-sheet p{
      margin: 0 0 14px;
      color: var(--muted);
      font: 14px/1.45 ui-sans-serif, system-ui, -apple-system, sans-serif;
    }.oform .close-photo{
      flex: 0 0 auto;
      border: 1px solid var(--line);
      border-radius: 3px;
      background: transparent;
      color: var(--ink);
      min-height: 42px;
      padding: 8px 13px;
      font: 750 13px/1 ui-sans-serif, system-ui, -apple-system, sans-serif;
      cursor: pointer;
    }.oform .close-photo:focus-visible, .oform .download-fallback:focus-visible{ outline: 3px solid var(--focus); outline-offset: 3px; }.oform .photo-frame{
      line-height: 0;
      background: #eee3c5;
      border: 1px solid var(--line);
      box-shadow: 0 10px 30px var(--shadow);
    }.oform .photo-frame img{
      display: block;
      width: 100%;
      height: auto;
      -webkit-touch-callout: default;
      user-select: auto;
    }.oform .download-fallback{
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 44px;
      margin-top: 16px;
      padding: 10px 14px;
      border: 1px solid var(--gold-dark);
      border-radius: 3px;
      color: var(--ink);
      font: 750 13px/1 ui-sans-serif, system-ui, -apple-system, sans-serif;
      text-decoration: none;
    }.oform .preview-column{ min-width: 0; }.oform .preview-label{
      display: flex;
      justify-content: space-between;
      align-items: baseline;
      gap: 12px;
      margin: 2px 0 10px;
      font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
      color: var(--muted);
      font-size: 12px;
    }.oform .preview-label strong{ color: var(--ink); font-size: 13px; }.oform .canvas-wrap{
      position: relative;
      width: 100%;
      overflow: hidden;
      background: #f4edd8;
      box-shadow: 0 18px 55px var(--shadow);
      border: 1px solid color-mix(in srgb, var(--line) 70%, #000);
      line-height: 0;
    }.oform canvas{
      display: block;
      width: 100%;
      height: auto;
      aspect-ratio: 2400 / 1697;
      background: #f4edd8;
    }.oform .loading{
      position: absolute;
      inset: 0;
      display: grid;
      place-items: center;
      background: #f4edd8;
      color: #134c2c;
      font: 700 15px/1.3 ui-sans-serif, system-ui, sans-serif;
      transition: opacity .2s ease;
    }.oform .loading.hidden{ display: none; }@media (max-width: 850px){.oform .omain{ padding: 16px; }.oform .workbench{ grid-template-columns: 1fr; }.oform .controls{ position: static; padding: 20px; }.oform .preview-column{ order: 2; }}@media (max-width: 430px){.oform .omain{ padding: 12px; }.oform .controls{ padding: 18px 16px; }.oform .preview-label span:last-child{ display: none; }}@media (prefers-reduced-motion: reduce){.oform *, .oform *::before, .oform *::after{ transition: none !important; }}
