:root { color-scheme: light; }
  #oshi-rough {
    color-scheme: light;
    --oa-lime: #655b87;
    --oa-lime-deep: #655b87;
    --oa-blue: #20aee8;
    --oa-pink: #ff4f9a;
    --oa-ink: #35343e;
    --oa-subtle: #6e6b7b;
    --oa-line: #dcd8e6;
    --oa-paper: #ffffff;
    --oa-cloud: #f8f8fb;
    --oa-warn: #ef6a62;
    width: 100%;
    color: var(--oa-ink);
    font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  }

  #oshi-rough * { box-sizing: border-box; }
  #oshi-rough [hidden] { display: none !important; }
  #oshi-rough[data-booting] .oa-stage { display: none; }
  #oshi-rough:not([data-booting]) .oa-boot-screen { display: none; }
  #oshi-rough .oa-boot-screen { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center; background: #f8f8fb; }
  #oshi-rough .oa-boot-screen strong { color: var(--oa-lime-deep); font-size: 24px; font-weight: 600; }
  #oshi-rough .oa-boot-screen p { max-width: 320px; margin: 0; color: var(--oa-ink); font-size: 15px; line-height: 1.6; }
  #oshi-rough .oa-boot-screen button { min-height: 44px; padding: 8px 18px; border: 1px solid #dcd8e6; border-radius: 12px; background: white; color: var(--oa-ink); font: inherit; }
  #oshi-rough .oa-boot-bag { position: relative; width: 160px; height: 158px; margin: 2px 0 4px; }
  #oshi-rough .oa-boot-handle { position: absolute; top: 0; left: 47px; width: 66px; height: 53px; border: 10px solid #b8e7d5; border-bottom: 0; border-radius: 50px 50px 0 0; }
  #oshi-rough .oa-boot-shell { position: absolute; inset: 33px 0 0; display: grid; place-items: center; border: 10px solid #c9eddf; border-radius: 27px; background: #effaf5; box-shadow: 0 10px 26px #24313a12; }
  #oshi-rough .oa-boot-window { display: flex; align-items: center; justify-content: center; gap: 4px; width: 120px; height: 82px; border: 3px solid #72c7e9; border-radius: 16px; background: white; }
  #oshi-rough .oa-boot-good { display: grid; place-items: center; width: 32px; height: 32px; border: 2px solid white; border-radius: 50%; background: #ff75ad; color: #ae3a70; box-shadow: 0 2px 5px #24313a20; font-size: 16px; line-height: 1; opacity: 0; animation: oa-boot-place 2.4s ease-in-out infinite both; }
  #oshi-rough .oa-boot-good:nth-child(2) { animation-name: oa-boot-place-second; }
  #oshi-rough .oa-boot-good:nth-child(3) { animation-name: oa-boot-place-third; }
  #oshi-rough .oa-boot-screen #oa-boot-message { color: #6e6b7b; font-size: 14px; font-weight: 600; letter-spacing: .06em; }
  #oshi-rough[data-boot-error] .oa-boot-bag { display: none; }
  #oshi-rough[data-boot-error] .oa-boot-screen #oa-boot-message { color: var(--oa-ink); font-size: 15px; font-weight: 400; letter-spacing: normal; }
  @keyframes oa-boot-place {
    0%, 8% { opacity: 0; transform: translateY(-12px) scale(.7); }
    20%, 80% { opacity: 1; transform: translateY(0) scale(1); }
    100% { opacity: 0; transform: translateY(4px) scale(.88); }
  }
  @keyframes oa-boot-place-second {
    0%, 22% { opacity: 0; transform: translateY(-12px) scale(.7); }
    34%, 80% { opacity: 1; transform: translateY(0) scale(1); }
    100% { opacity: 0; transform: translateY(4px) scale(.88); }
  }
  @keyframes oa-boot-place-third {
    0%, 36% { opacity: 0; transform: translateY(-12px) scale(.7); }
    48%, 80% { opacity: 1; transform: translateY(0) scale(1); }
    100% { opacity: 0; transform: translateY(4px) scale(.88); }
  }
  @media (prefers-reduced-motion: reduce) {
    #oshi-rough .oa-boot-good { animation: none; opacity: 1; transform: none; }
  }

  #oshi-rough .oa-crop-editor { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; background: #f8f8fb; color: #35343e; max-width: 430px; margin: auto; box-shadow: 0 0 0 100vmax rgba(20,35,40,.35); }
  #oshi-rough .oa-crop-head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 58px; padding: 8px 12px; background: white; border-bottom: 1px solid #dcd8e6; }
  #oshi-rough .oa-crop-head strong { font-size: 15px; font-weight: 600; white-space: nowrap; }
  #oshi-rough .oa-crop-head button { border: 1px solid #dcd8e6; border-radius: 12px; background: white; color: #35343e; font: inherit; cursor: pointer; }
  #oshi-rough .oa-crop-head button { min-height: 40px; padding: 0 9px; font-size: 13px; white-space: nowrap; }
  #oshi-rough .oa-crop-head .oa-crop-apply { border-color: #9990b3; background: #655b87; }
  #oshi-rough .oa-crop-lead { flex: none; margin: 0; padding: 10px 16px; font-size: 14px; line-height: 1.5; }
  #oshi-rough .oa-crop-shape-row { flex: none; display: flex; align-items: center; gap: 12px; padding: 0 16px 12px; font-size: 14px; font-weight: 600; }
  #oshi-rough .oa-crop-shape-options { display: flex; flex: 1; gap: 8px; }
  #oshi-rough .oa-crop-shape-button { flex: 1; min-height: 44px; padding: 8px; border: 1px solid #cbd9df; border-radius: 12px; background: white; color: #35343e; font: inherit; cursor: pointer; }
  #oshi-rough .oa-crop-shape-button[aria-pressed="true"] { border-color: #9990b3; background: #eeeaf6; box-shadow: inset 0 0 0 1px #9990b3; }
  #oshi-rough .oa-crop-stage { position: relative; flex: 1; min-height: 220px; display: grid; place-items: center; overflow: hidden; background: #dce7e9; }
  #oshi-rough .oa-crop-frame { position: relative; max-width: calc(100% - 42px); max-height: calc(100% - 42px); box-shadow: 0 6px 20px rgba(0,0,0,.15); }
  #oshi-rough .oa-crop-photo { display: block; width: 100%; height: 100%; object-fit: fill; user-select: none; pointer-events: none; }
  #oshi-rough .oa-crop-selection { position: absolute; border: 2px solid #20aee8; box-shadow: 0 0 0 999px rgba(12,22,27,.45), inset 0 0 0 1px white; touch-action: none; cursor: move; }
  #oshi-rough .oa-crop-selection.is-circle { border-radius: 50%; }
  #oshi-rough .oa-crop-handle { position: absolute; width: 44px; height: 44px; border: 0; background: transparent; padding: 0; transform: translate(-50%,-50%); touch-action: none; cursor: grab; }
  #oshi-rough .oa-crop-handle::after { content: ''; display: block; width: 17px; height: 17px; margin: auto; border: 3px solid #087dae; border-radius: 50%; background: white; box-shadow: 0 1px 5px #3339; }
  #oshi-rough .oa-crop-handle[data-corner="nw"] { left: 0; top: 0; }
  #oshi-rough .oa-crop-handle[data-corner="ne"] { left: 100%; top: 0; }
  #oshi-rough .oa-crop-handle[data-corner="sw"] { left: 0; top: 100%; }
  #oshi-rough .oa-crop-handle[data-corner="se"] { left: 100%; top: 100%; }
  #oshi-rough .oa-crop-handle[data-corner="nw"] { margin: -17px 0 0 -17px; }
  #oshi-rough .oa-crop-handle[data-corner="ne"] { margin: -17px 0 0 17px; }
  #oshi-rough .oa-crop-handle[data-corner="sw"] { margin: 17px 0 0 -17px; }
  #oshi-rough .oa-crop-handle[data-corner="se"] { margin: 17px 0 0 17px; }
  #oshi-rough .oa-crop-handle::before { content: ''; position: absolute; inset: 13px; border-top: 2px solid #087dae; transform: rotate(45deg); opacity: .8; }
  #oshi-rough .oa-crop-loupe { position: absolute; z-index: 3; top: 12px; right: 12px; width: 104px; height: 104px; background: white; border: 3px solid #20aee8; border-radius: 52px; box-shadow: 0 4px 18px #14263166; pointer-events: none; }
  #oshi-rough .oa-crop-loupe.on-left { left: 12px; right: auto; }
  #oshi-rough .oa-crop-foot { flex: none; padding: 10px 14px max(14px, env(safe-area-inset-bottom)); background: white; border-top: 1px solid #dcd8e6; }
  #oshi-rough .oa-crop-warning { min-height: 20px; color: #435661; font-size: 12px; line-height: 1.4; }
  #oshi-rough .oa-good.has-photo, #oshi-rough .oa-good.is-rectangle.has-photo { background-size: contain; background-repeat: no-repeat; }

  #oshi-rough .oa-stage {
    display: grid;
    place-items: start center;
    width: 100%;
  }

  #oshi-rough .oa-phone {
    position: relative;
    width: min(100%, 430px);
    max-width: calc(100vw - 24px);
    min-height: 790px;
    overflow: hidden;
    background: var(--oa-paper);
    border: 1px solid #dcd8e6;
    border-radius: 30px;
    box-shadow: 0 20px 52px rgba(36, 49, 58, .15);
  }

  #oshi-rough .oa-topbar { position: relative; z-index: 5; }
  #oshi-rough .oa-save-menu { position: absolute; z-index: 20; top: 68px; right: 10px; width: min(280px, calc(100% - 20px)); max-height: calc(100dvh - 85px); overflow-y: auto; padding: 14px; border: 1px solid #dcd8e6; border-radius: 16px; background: white; box-shadow: 0 8px 30px #24313a33; }
  #oshi-rough .oa-save-menu strong { display: block; margin-bottom: 8px; font-size: 15px; }
  #oshi-rough .oa-save-menu p { margin: 0 0 10px; color: #6e6b7b; font-size: 12px; line-height: 1.5; }
  #oshi-rough .oa-save-menu button { min-height: 44px; width: 100%; margin-top: 7px; border: 1px solid #dcd8e6; border-radius: 11px; background: white; color: #35343e; cursor: pointer; }
  #oshi-rough .oa-save-menu #oa-save-plan { background: #655b87; border-color: #9990b3; }
  #oshi-rough .oa-save-menu button:disabled { opacity: .45; cursor: default; }
  #oshi-rough .oa-save-menu .oa-save-state { min-height: 18px; color: #655b87; font-size: 12px; }
  #oshi-rough .oa-save-menu select { width: 100%; min-height: 42px; margin-top: 8px; padding: 6px; border: 1px solid #dcd8e6; border-radius: 10px; background: white; color: #35343e; font: inherit; font-size: 12px; }
  #oshi-rough .oa-save-warning { position: absolute; z-index: 19; top: 74px; left: 10px; right: 10px; display: flex; align-items: center; gap: 8px; padding: 9px 10px; border: 1px solid #d5a255; border-radius: 12px; background: #fff7e8; color: #563900; box-shadow: 0 4px 15px #24313a22; font-size: 12px; line-height: 1.4; }
  #oshi-rough .oa-save-warning[hidden] { display: none; }
  #oshi-rough .oa-save-warning span { flex: 1; }
  #oshi-rough .oa-save-warning button { min-height: 44px; padding: 6px 10px; border: 1px solid #b68132; border-radius: 9px; background: white; color: #563900; font: inherit; font-weight: 700; cursor: pointer; }
  #oshi-rough .oa-share-sheet { position: absolute; z-index: 40; inset: auto 0 0; max-height: min(72%, 610px); overflow-y: auto; padding: 18px 18px max(22px, env(safe-area-inset-bottom)); border: 1px solid #dcd8e6; border-radius: 20px 20px 0 0; background: white; box-shadow: 0 -8px 32px #24313a33; }
  #oshi-rough .oa-share-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
  #oshi-rough .oa-share-head strong { font-size: 19px; }
  #oshi-rough .oa-share-sheet button { min-height: 44px; padding: 8px 14px; border: 1px solid #dcd8e6; border-radius: 12px; background: white; color: #35343e; cursor: pointer; }
  #oshi-rough .oa-share-sheet .oa-share-primary { width: 100%; margin-top: 12px; border-color: #9990b3; background: #655b87; font-weight: 600; }
  #oshi-rough .oa-share-sheet .oa-share-primary:disabled { opacity: .5; cursor: default; }
  #oshi-rough .oa-share-sheet p { margin: 8px 0; color: #6e6b7b; font-size: 13px; line-height: 1.5; }
  #oshi-rough .oa-share-card { margin: 10px 0; padding: 11px 12px; border-radius: 13px; background: #eeeaf6; font-size: 13px; line-height: 1.55; }
  #oshi-rough .oa-share-card.is-muted { background: #f8f8fb; }
  #oshi-rough .oa-share-card strong { display: block; margin-bottom: 3px; }
  #oshi-rough .oa-share-thumb { width: 68px; height: 68px; margin-top: 8px; object-fit: contain; border: 1px solid #dcd8e6; border-radius: 10px; background: white; }
  #oshi-rough .oa-share-name { margin-top: 14px; }
  #oshi-rough .oa-share-name label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
  #oshi-rough .oa-share-name input { box-sizing: border-box; width: 100%; min-height: 46px; padding: 9px 12px; border: 1px solid #a9bbc3; border-radius: 11px; background: white; color: #35343e; font: inherit; font-size: 16px; }
  #oshi-rough .oa-share-feedback { min-height: 20px; color: #655b87 !important; }


  #oshi-rough .oa-top-group {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  #oshi-rough .oa-top-group:last-child { justify-content: flex-end; }

  #oshi-rough button {
    font: inherit;
  }

  #oshi-rough .oa-icon-button,
  #oshi-rough .oa-rail-button,
  #oshi-rough .oa-rail-guide,
  #oshi-rough .oa-choice,
  #oshi-rough .oa-action {
    appearance: none;
    border: 0;
    color: inherit;
    background: transparent;
  }

  #oshi-rough .oa-icon-button {
    display: inline-grid;
    place-items: center;
    min-width: 44px;
    min-height: 44px;
    border-radius: 14px;
    color: var(--oa-ink);
  }

  #oshi-rough .oa-icon-button:hover,
  #oshi-rough .oa-icon-button:focus-visible {
    background: var(--oa-cloud);
  }

  #oshi-rough .oa-icon-button:active,
  #oshi-rough .oa-rail-button:active,
  #oshi-rough .oa-rail-guide:active {
    transform: scale(.94);
  }

  #oshi-rough .oa-icon-button svg,
  #oshi-rough .oa-rail-button svg,
  #oshi-rough .oa-rail-guide svg,
  #oshi-rough .oa-inline-icon svg {
    width: 22px;
    height: 22px;
    stroke-width: 2;
  }

  #oshi-rough .oa-canvas {
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    min-height: 430px;
    padding: 20px 66px 14px 26px;
    background:
      radial-gradient(circle at 50% 28%, rgba(155, 234, 23, .10), transparent 33%),
      linear-gradient(180deg, #fbfdfd 0%, #f8f8fb 100%);
  }

  #oshi-rough .oa-phone[data-side="left"] .oa-canvas {
    padding-right: 26px;
    padding-left: 66px;
  }

  #oshi-rough .oa-bag {
    position: relative;
    width: min(100%, 278px);
    height: 310px;
    margin: 0;
    border: 10px solid #d5efe4;
    border-radius: 46px 46px 32px 32px;
    background: #eefaf4;
    box-shadow: 0 12px 28px rgba(36, 49, 58, .10);
    touch-action: none;
  }

  #oshi-rough .oa-canvas-scene {
    display: grid;
    place-items: center;
    width: 100%;
    height: 360px;
    padding-top: 40px;
    touch-action: pan-y;
    will-change: transform;
  }

  #oshi-rough .oa-zoom-controls { position: absolute; z-index: 4; bottom: 10px; left: 12px; display: flex; gap: 5px; align-items: center; padding: 4px; border: 1px solid #cbd9df; border-radius: 14px; background: #fffffff2; box-shadow: 0 3px 12px #24313a16; }
  #oshi-rough .oa-phone[data-side="left"] .oa-zoom-controls { left: auto; right: 12px; }
  #oshi-rough .oa-zoom-controls button { min-width: 40px; min-height: 40px; padding: 0 8px; border: 0; border-radius: 9px; background: transparent; color: #35343e; font: inherit; font-weight: 700; cursor: pointer; }
  #oshi-rough .oa-zoom-controls button:active { background: #e9f4d4; }
  #oshi-rough .oa-zoom-controls button:disabled { opacity: .4; cursor: default; }
  #oshi-rough .oa-zoom-controls .oa-zoom-reset { min-width: 56px; font-size: 13px; }
  #oshi-rough .oa-new-confirm { margin-top: 10px; padding: 10px; border: 1px solid #dcd8e6; border-radius: 12px; background: #f5f9fa; }
  #oshi-rough .oa-new-confirm p { margin-bottom: 4px; }

  #oshi-rough .oa-handle {
    position: absolute;
    top: -50px;
    left: 50%;
    width: min(116px, calc(100% - 20px));
    height: 40px;
    transform: translateX(-50%);
    border: 12px solid #b8e6d2;
    border-bottom: 0;
    border-radius: 60px 60px 0 0;
  }

  #oshi-rough .oa-window {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 234px;
    height: 190px;
    transform: translate(-50%, -50%);
    overflow: visible;
    border: 2px solid #c7d8de;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: inset 0 0 0 9px #edf4f6;
  }

  #oshi-rough .oa-safe-area {
    position: absolute;
    inset: 15px 17px;
    border: 3px solid var(--oa-blue);
    border-radius: 14px;
    background: rgba(32, 174, 232, .025);
    pointer-events: none;
  }

  #oshi-rough .oa-goods {
    position: absolute;
    inset: 22px 18px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-content: center;
    gap: 9px;
  }

  #oshi-rough .oa-good {
    position: relative;
    aspect-ratio: 1;
    border-radius: 50%;
    background-color: var(--good-color, #e788ae);
    background-size: cover;
    background-position: center;
    border: 3px solid #fff;
    box-shadow: 0 2px 0 rgba(36, 49, 58, .12), 0 4px 10px rgba(255, 79, 154, .19);
    transition: transform .18s ease, opacity .18s ease, box-shadow .18s ease;
  }

  #oshi-rough .oa-good::after {
    content: attr(data-symbol);
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: rgba(36, 49, 58, .55);
    font-size: 20px;
  }
  #oshi-rough .oa-good.has-photo::after { display: none; }

  #oshi-rough .oa-good.is-rectangle {
    aspect-ratio: auto;
    border-radius: 7px;
    border-width: 3px 3px 10px;
    background-color: #fff;
    background-image: linear-gradient(145deg, var(--good-color, #e788ae), #fbe0ef);
    background-size: cover;
  }
  #oshi-rough .oa-good.is-rectangle::after {
    inset: 5px 3px 1px;
    border-radius: 2px;
    background: var(--good-color, #e788ae);
    color: rgba(36, 49, 58, .55);
    font-size: 15px;
  }
  #oshi-rough .oa-good.is-rectangle.has-photo::after { display: none; }
  #oshi-rough .oa-goods.is-center-view .oa-good { opacity: .28; }
  #oshi-rough .oa-center-mark { position: absolute; display: grid; place-items: center; width: 15px; height: 15px; border: 2px solid #176784; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px #fff9, 0 2px 5px #24313a55; transform: translate(-50%, -50%); pointer-events: none; }
  #oshi-rough .oa-center-mark::after { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #176784; }

  #oshi-rough .oa-good.is-outside {
    z-index: 2;
    box-shadow: 0 0 0 3px var(--oa-warn), 0 8px 16px rgba(239, 106, 98, .18);
  }
  #oshi-rough .oa-good.is-outside::before {
    content: "!";
    position: absolute;
    z-index: 3;
    top: -8px;
    right: -8px;
    display: grid;
    place-items: center;
    width: 21px;
    height: 21px;
    border: 2px solid #fff;
    border-radius: 50%;
    color: #fff;
    background: var(--oa-warn);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
  }

  #oshi-rough .oa-dimension {
    position: absolute;
    display: none;
    align-items: center;
    justify-content: center;
    color: var(--oa-blue);
    font-size: 11px;
    font-weight: 500;
  }

  #oshi-rough .oa-dimension::before,
  #oshi-rough .oa-dimension::after {
    content: "";
    position: absolute;
    background: currentColor;
  }

  #oshi-rough .oa-dimension-x {
    left: 41px;
    right: 41px;
    bottom: 28px;
    height: 16px;
    border-top: 1px solid currentColor;
  }

  #oshi-rough .oa-dimension-x::before,
  #oshi-rough .oa-dimension-x::after { top: -4px; width: 1px; height: 8px; }
  #oshi-rough .oa-dimension-x::before { left: 0; }
  #oshi-rough .oa-dimension-x::after { right: 0; }

  #oshi-rough .oa-dimension-y {
    top: 56px;
    bottom: 43px;
    left: 20px;
    width: 19px;
    writing-mode: vertical-rl;
    border-left: 1px solid currentColor;
  }

  #oshi-rough .oa-dimension-y::before,
  #oshi-rough .oa-dimension-y::after { left: -4px; width: 8px; height: 1px; }
  #oshi-rough .oa-dimension-y::before { top: 0; }
  #oshi-rough .oa-dimension-y::after { bottom: 0; }

  #oshi-rough .oa-phone[data-mode="bag"] .oa-dimension { display: flex; }
  #oshi-rough .oa-safe-area,
  #oshi-rough .oa-goods {
    inset: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  #oshi-rough .oa-goods { display: block; overflow: visible; }
  #oshi-rough .oa-good { position: absolute; aspect-ratio: 1; border-width: 2px; }
  #oshi-rough .oa-overflow-warning { margin: 7px 0 0; padding: 8px 10px; border-radius: 10px; color: #8f2924; background: #fff1ed; font-size: 11px; font-weight: 600; }


  #oshi-rough .oa-rail {
    position: absolute;
    top: 96px;
    right: 10px;
    z-index: 8;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: right .24s ease, left .24s ease;
  }

  #oshi-rough .oa-phone[data-side="left"] .oa-rail {
    right: auto;
    left: 10px;
  }

  #oshi-rough .oa-rail-button {
    display: grid;
    place-items: center;
    width: 52px;
    min-height: 56px;
    padding: 6px 4px;
    border: 1px solid var(--oa-line);
    border-radius: 17px;
    color: var(--oa-subtle);
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 5px 14px rgba(36, 49, 58, .10);
    transition: transform .14s ease, color .16s ease, background .16s ease;
  }

  #oshi-rough .oa-rail-button span {
    display: none;
    margin-top: 3px;
    font-size: 10px;
    line-height: 1;
  }

  #oshi-rough .oa-phone[data-guide="on"] .oa-rail-button span { display: block; }

  #oshi-rough .oa-rail-button[aria-pressed="true"] {
    color: #655b87;
    background: var(--oa-lime);
    border-color: transparent;
  }

  #oshi-rough .oa-rail-guide {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 1px;
    width: 52px;
    min-height: 64px;
    margin-top: 6px;
    padding: 5px 3px;
    border: 1px solid var(--oa-line);
    border-radius: 16px;
    color: var(--oa-subtle);
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 5px 14px rgba(36, 49, 58, .10);
  }

  #oshi-rough .oa-rail-guide span { font-size: 10px; line-height: 1.1; }
  #oshi-rough .oa-rail-guide small { font-size: 10px; line-height: 1.1; font-weight: 600; }
  #oshi-rough .oa-rail-guide[aria-pressed="true"] { color: #655b87; border-color: #9990b3; background: #eeeaf6; }
  #oshi-rough .oa-rail-guide:focus-visible { outline: 2px solid var(--oa-blue); outline-offset: 2px; }

  #oshi-rough .oa-guide-note {
    display: none;
    margin-top: 8px;
    padding: 7px 10px;
    color: #655b87;
    background: #eeeaf6;
    border-left: 3px solid #9990b3;
    border-radius: 8px;
    font-size: 11px;
    line-height: 1.4;
  }

  #oshi-rough .oa-phone[data-guide="on"] .oa-guide-note { display: block; }
  #oshi-rough .oa-phone[data-guide="off"] .oa-guide-detail { display: none; }
  #oshi-rough .oa-phone[data-guide="off"] .oa-panel-title small { display: none; }
  #oshi-rough .oa-phone[data-mode="recipe"][data-range="off"] .oa-safe-area { border-color: transparent; background: transparent; }

  #oshi-rough .oa-panel {
    position: relative;
    z-index: 6;
    min-height: 270px;
    padding: 18px 16px 18px;
    background: var(--oa-paper);
    border-top: 1px solid var(--oa-line);
    box-shadow: 0 -10px 28px rgba(36, 49, 58, .08);
  }

  #oshi-rough .oa-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
  }

  #oshi-rough .oa-panel-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 500;
  }

  #oshi-rough .oa-panel-title small {
    color: var(--oa-subtle);
    font-size: 11px;
    font-weight: 400;
  }

  #oshi-rough .oa-subtabs {
    display: flex;
    gap: 4px;
    margin: -2px 0 10px;
    padding: 3px;
    border-radius: 13px;
    background: var(--oa-cloud);
  }

  #oshi-rough .oa-subtab {
    flex: 1 1 0;
    min-width: 0;
    min-height: 38px;
    padding: 7px 5px;
    border: 0;
    border-radius: 10px;
    color: var(--oa-subtle);
    background: transparent;
    font-size: 11px;
  }

  #oshi-rough .oa-subtab[aria-pressed="true"] {
    color: var(--oa-ink);
    background: var(--oa-paper);
    box-shadow: 0 2px 7px rgba(36, 49, 58, .10);
  }

  #oshi-rough .oa-panel-body {
    min-height: 132px;
    max-height: 190px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 3px;
    scrollbar-width: thin;
    scrollbar-color: #bdcbd1 transparent;
  }

  #oshi-rough .oa-panel-body::-webkit-scrollbar { width: 5px; }
  #oshi-rough .oa-panel-body::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #bdcbd1;
  }

  #oshi-rough .oa-section-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 3px 0 7px;
    color: var(--oa-subtle);
    font-size: 11px;
  }

  #oshi-rough .oa-divider {
    height: 1px;
    margin: 10px 0;
    background: var(--oa-line);
  }

  #oshi-rough .oa-note {
    padding: 9px 11px;
    border-radius: 12px;
    color: var(--oa-subtle);
    background: #f7fafb;
    font-size: 11px;
    line-height: 1.5;
  }

  #oshi-rough .oa-measure-card {
    padding: 12px;
    border-radius: 16px;
    background: var(--oa-cloud);
  }

  #oshi-rough .oa-window-sketch {
    position: relative;
    width: min(235px, calc(100% - 44px));
    height: 142px;
    margin: 12px auto 6px;
    padding: 16px 18px;
    border: 9px solid #cddce1;
    border-radius: 18px;
    background: #e9f2f4;
  }

  #oshi-rough .oa-visible-sketch {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    border: 2px solid var(--oa-blue);
    border-radius: 8px;
    color: var(--oa-subtle);
    background: #fff;
    font-size: 10px;
  }

  #oshi-rough .oa-measure-x,
  #oshi-rough .oa-measure-y {
    position: absolute;
    color: #087dac;
    font-size: 10px;
    font-weight: 500;
  }

  #oshi-rough .oa-measure-x {
    left: 18px;
    right: 18px;
    bottom: -22px;
    text-align: center;
  }

  #oshi-rough .oa-measure-y {
    top: 17px;
    bottom: 17px;
    left: -35px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
  }

  #oshi-rough .oa-measure-y b { font-weight: 500; }

  #oshi-rough .oa-margin-tag {
    position: absolute;
    top: -8px;
    right: 4px;
    padding: 3px 7px;
    border-radius: 999px;
    color: #725500;
    background: #fff3bd;
    font-size: 10px;
    white-space: nowrap;
  }

  #oshi-rough .oa-measure-legend {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 24px;
    color: var(--oa-subtle);
    font-size: 11px;
  }

  #oshi-rough .oa-legend-swatch {
    width: 18px;
    height: 12px;
    border-radius: 4px;
    background: #dce8eb;
  }

  #oshi-rough .oa-goods-measure {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
  }

  #oshi-rough .oa-circle-sketch {
    position: relative;
    width: 110px;
    aspect-ratio: 1;
    border: 3px solid var(--oa-pink);
    border-radius: 50%;
    background: #fff0f6;
  }

  #oshi-rough .oa-diameter-line {
    position: absolute;
    top: 50%;
    left: 3px;
    right: 3px;
    height: 1px;
    background: #b34373;
  }

  #oshi-rough .oa-diameter-line::before,
  #oshi-rough .oa-diameter-line::after {
    position: absolute;
    top: -9px;
    color: #b34373;
    font-size: 15px;
  }

  #oshi-rough .oa-diameter-line::before { content: "‹"; left: -1px; }
  #oshi-rough .oa-diameter-line::after { content: "›"; right: -1px; }

  #oshi-rough .oa-diameter-label {
    position: absolute;
    left: 50%;
    bottom: 19px;
    transform: translateX(-50%);
    color: #8e315a;
    font-size: 10px;
    white-space: nowrap;
  }

  #oshi-rough .oa-measure-copy strong {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    font-weight: 500;
  }

  #oshi-rough .oa-measure-copy p {
    margin: 0;
    color: var(--oa-subtle);
    font-size: 11px;
    line-height: 1.55;
  }

  #oshi-rough .oa-opening-instruction {
    margin-bottom: 7px;
    color: var(--oa-ink);
    font-size: 12px;
    font-weight: 500;
  }

  #oshi-rough .oa-opening-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 12px;
    margin: -1px 0 6px;
    color: var(--oa-subtle);
    font-size: 10px;
  }

  #oshi-rough .oa-opening-legend span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
  }

  #oshi-rough .oa-opening-legend i {
    width: 13px;
    height: 9px;
    border-radius: 3px;
    background: #dce8eb;
  }

  #oshi-rough .oa-opening-legend .is-measured {
    border: 2px solid var(--oa-blue);
    background: #fff;
  }

  #oshi-rough .oa-measure-workline {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 118px;
    align-items: center;
    gap: 10px;
  }

  #oshi-rough .oa-measure-workline .oa-opening-diagram {
    height: 104px;
    margin: 0 0 0 30px;
  }

  #oshi-rough .oa-input-stack {
    display: grid;
    gap: 7px;
  }

  #oshi-rough .oa-number-field {
    display: grid;
    gap: 2px;
    min-width: 0;
    padding: 5px 8px;
    border: 1px solid var(--oa-line);
    border-radius: 11px;
    background: var(--oa-paper);
  }

  #oshi-rough .oa-number-field > span {
    color: var(--oa-subtle);
    font-size: 10px;
  }

  #oshi-rough .oa-number-control {
    display: flex;
    align-items: baseline;
    gap: 4px;
  }

  #oshi-rough .oa-number-control input {
    width: 66px;
    min-width: 0;
    padding: 0;
    border: 0;
    outline: 0;
    color: var(--oa-ink);
    background: transparent;
    font: inherit;
    font-size: 16px;
    font-weight: 500;
  }

  #oshi-rough .oa-number-control em {
    color: var(--oa-subtle);
    font-size: 10px;
    font-style: normal;
  }

  #oshi-rough .oa-opening-diagram {
    position: relative;
    height: 105px;
    margin: 0 18px 9px 35px;
  }

  #oshi-rough .oa-opening-diagram::before {
    content: "";
    position: absolute;
    inset: 0 0 20px;
    border: 8px solid #dce8eb;
    border-radius: 15px;
    background: #eff5f7;
  }

  #oshi-rough .oa-opening-box {
    position: absolute;
    inset: 11px 13px 31px;
    display: grid;
    place-items: center;
    border: 3px solid var(--oa-blue);
    border-radius: 11px;
    color: var(--oa-subtle);
    background: #fff;
    font-size: 10px;
  }

  #oshi-rough .oa-opening-width {
    position: absolute;
    left: 13px;
    right: 13px;
    bottom: 0;
    color: #087dac;
    text-align: center;
    font-size: 10px;
    font-weight: 500;
  }

  #oshi-rough .oa-opening-height {
    position: absolute;
    top: 11px;
    bottom: 31px;
    left: -30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #087dac;
    font-size: 10px;
    font-weight: 500;
  }

  #oshi-rough .oa-opening-width::before,
  #oshi-rough .oa-opening-width::after {
    content: "";
    position: absolute;
    top: -4px;
    width: 1px;
    height: 9px;
    background: #087dac;
  }

  #oshi-rough .oa-opening-width::before { left: 0; }
  #oshi-rough .oa-opening-width::after { right: 0; }

  #oshi-rough .oa-shape-choice {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    margin-bottom: 8px;
  }

  #oshi-rough .oa-shape-button {
    min-height: 38px;
    padding: 6px;
    border: 1px solid var(--oa-line);
    border-radius: 11px;
    color: var(--oa-subtle);
    background: var(--oa-paper);
    font-size: 11px;
  }

  #oshi-rough .oa-shape-button[aria-pressed="true"] {
    color: #655b87;
    border-color: #9990b3;
    background: #eeeaf6;
  }

  #oshi-rough .oa-shape-diagram {
    display: grid;
    grid-template-columns: 94px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-height: 92px;
    padding: 6px 10px;
    border-radius: 14px;
    background: var(--oa-cloud);
  }

  #oshi-rough .oa-circle-sketch.is-compact {
    width: 82px;
  }

  #oshi-rough .oa-rect-sketch {
    position: relative;
    width: 72px;
    height: 84px;
    margin: auto;
    border: 3px solid var(--oa-pink);
    border-radius: 8px;
    background: #fff0f6;
  }

  #oshi-rough .oa-rect-width {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    color: #8e315a;
    text-align: center;
    font-size: 9px;
  }

  #oshi-rough .oa-rect-height {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 5px;
    display: grid;
    place-items: center;
    color: #8e315a;
    font-size: 9px;
    writing-mode: vertical-rl;
  }

  #oshi-rough .oa-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  #oshi-rough .oa-field {
    min-width: 0;
    padding: 10px 12px;
    border-radius: 14px;
    background: var(--oa-cloud);
  }

  #oshi-rough .oa-field-label {
    display: block;
    margin-bottom: 4px;
    color: var(--oa-subtle);
    font-size: 11px;
  }

  #oshi-rough .oa-value {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    font-size: 16px;
    font-weight: 500;
  }

  #oshi-rough .oa-value em {
    color: var(--oa-subtle);
    font-size: 11px;
    font-style: normal;
    font-weight: 400;
  }

  #oshi-rough .oa-choice-row,
  #oshi-rough .oa-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  #oshi-rough .oa-choice {
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid var(--oa-line);
    border-radius: 12px;
    background: var(--oa-paper);
    font-size: 12px;
  }

  #oshi-rough .oa-choice[aria-pressed="true"] {
    color: #655b87;
    border-color: #9990b3;
    background: #eeeaf6;
  }

  #oshi-rough .oa-layout-control { display: grid; gap: 5px; margin-bottom: 7px; }
  #oshi-rough .oa-layout-label { color: var(--oa-subtle); font-size: 11px; }
  #oshi-rough .oa-layout-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  #oshi-rough .oa-layout-option { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 5px 8px; border: 1px solid var(--oa-line); border-radius: 10px; background: var(--oa-paper); font-size: 11px; text-align: left; }
  #oshi-rough .oa-layout-option[aria-pressed="true"] { border-color: #9990b3; background: #eeeaf6; }
  #oshi-rough .oa-layout-option--arrangement { justify-content: center; text-align: center; }
  #oshi-rough .oa-layout-option svg { flex: 0 0 44px; width: 44px; height: 32px; overflow: visible; }
  #oshi-rough .oa-layout-option svg circle,
  #oshi-rough .oa-layout-option svg rect { fill: #ae5081; }
  #oshi-rough .oa-layout-option-text { display: grid; gap: 1px; min-width: 0; }
  #oshi-rough .oa-layout-option-text strong { font-size: 12px; line-height: 1.2; font-weight: 600; white-space: nowrap; }
  #oshi-rough .oa-layout-option-text small { color: var(--oa-subtle); font-size: 9px; line-height: 1.2; white-space: nowrap; }
  #oshi-rough .oa-phone[data-mode="layout"] .oa-panel { min-height: 292px; }
  #oshi-rough .oa-layout-count { display: flex; align-items: center; justify-content: space-between; margin: 5px 0 7px; padding: 0 3px; font-size: 11px; }
  #oshi-rough .oa-layout-count strong { font-size: 14px; }
  #oshi-rough .oa-color-field { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 9px; font-size: 12px; }
  #oshi-rough .oa-color-field input { width: 46px; height: 36px; padding: 2px; border: 1px solid var(--oa-line); border-radius: 8px; background: var(--oa-paper); }
  #oshi-rough .oa-photo-state { margin-top: 6px; color: var(--oa-subtle); font-size: 11px; }
  #oshi-rough .oa-photo-state [data-recrop-photo] { min-height: 40px; margin-left: 8px; padding: 7px 10px; border: 1px solid var(--oa-line); border-radius: 10px; background: white; color: var(--oa-ink); font: inherit; font-size: 13px; cursor: pointer; }
  #oshi-rough .oa-count-stepper { display: flex; align-items: center; gap: 9px; }
  #oshi-rough .oa-count-stepper button { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--oa-line); border-radius: 9px; background: var(--oa-cloud); font-size: 18px; line-height: 1; }
  #oshi-rough .oa-count-stepper button:disabled { opacity: .4; }
  #oshi-rough .oa-phone[data-mode="layout"] .oa-panel-body { max-height: none; overflow-y: visible; }
  #oshi-rough .oa-grid-standard { min-height: 28px; padding: 4px 2px; font-size: 12px; font-weight: 500; }
  #oshi-rough .oa-overlap-adjust { margin: 5px 2px 8px; }
  #oshi-rough .oa-overlap-adjust label { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 4px; font-size: 12px; font-weight: 500; }
  #oshi-rough .oa-overlap-adjust output { color: #7c3e64; font-variant-numeric: tabular-nums; }
  #oshi-rough .oa-overlap-adjust input { width: 100%; min-height: 32px; margin: 0; accent-color: var(--oa-lime-deep); }
  #oshi-rough .oa-overlap-scale { position: relative; height: 16px; margin: -2px 9px 1px; color: var(--oa-subtle); font-size: 10px; font-variant-numeric: tabular-nums; }
  #oshi-rough .oa-overlap-scale span { position: absolute; left: var(--tick-pos); transform: translateX(-50%); white-space: nowrap; }
  #oshi-rough .oa-overlap-scale span:first-child { transform: none; }
  #oshi-rough .oa-overlap-scale span:last-child:not(:first-child) { transform: translateX(-100%); }
  #oshi-rough .oa-overlap-ends { display: flex; justify-content: space-between; color: var(--oa-subtle); font-size: 10px; }
  #oshi-rough .oa-overlap-measure { display: flex; justify-content: space-between; gap: 8px; margin: 2px 0 5px; color: var(--oa-subtle); font-size: 11px; }
  #oshi-rough .oa-overlap-measure.is-rectangle { display: grid; gap: 2px; }
  #oshi-rough .oa-overlap-measure strong { color: var(--oa-ink); font-variant-numeric: tabular-nums; }
  #oshi-rough .oa-layout-capacity { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 6px 2px 2px; font-size: 11px; }
  #oshi-rough .oa-capacity-chip { padding: 6px 8px; border-radius: 8px; color: #175875; background: #e9f7ff; white-space: nowrap; }
  #oshi-rough .oa-capacity-chip strong { font-size: 12px; font-variant-numeric: tabular-nums; }
  #oshi-rough .oa-owned-row { display: flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 11px; }
  #oshi-rough .oa-owned-row input { width: 65px; min-height: 34px; padding: 5px 8px; border: 1px solid var(--oa-line); border-radius: 8px; background: var(--oa-paper); color: var(--oa-ink); font: inherit; font-size: 14px; text-align: center; }
  #oshi-rough .oa-goods-owned { justify-content: space-between; margin: 9px 2px 3px; font-size: 12px; }
  #oshi-rough .oa-goods-stock { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 4px 0 10px; padding: 7px 10px; border: 1px solid var(--oa-line); border-radius: 12px; font-size: 13px; }
  #oshi-rough .oa-goods-stock input { width: 74px; min-height: 44px; padding: 6px 8px; border: 1px solid var(--oa-line); border-radius: 9px; background: white; color: var(--oa-ink); font-size: 17px; text-align: center; }
  #oshi-rough .oa-shortage-note { margin: -2px 2px 6px; color: #8a5c00; font-size: 11px; }
  #oshi-rough .oa-visibility-note { margin: 7px 2px 0; color: var(--oa-subtle); font-size: 11px; }

  #oshi-rough .oa-phone[data-mode="recipe"] .oa-panel-body { max-height: none; overflow-y: visible; }
  #oshi-rough .oa-recipe-intro { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 5px; }
  #oshi-rough .oa-recipe-intro strong { font-size: 14px; font-weight: 500; }
  #oshi-rough .oa-recipe-intro span { color: var(--oa-subtle); font-size: 11px; }
  #oshi-rough .oa-recipe-status { margin: 3px 0 6px; padding: 6px 8px; border-radius: 8px; background: #fff1ed; color: #8f2924; font-size: 11px; }
  #oshi-rough .oa-recipe-status.is-unknown { background: var(--oa-cloud); color: var(--oa-ink); }
  #oshi-rough .oa-recipe-rows { display: grid; }
  #oshi-rough .oa-recipe-row { display: grid; grid-template-columns: 75px minmax(0, 1fr); align-items: baseline; gap: 8px; min-height: 32px; padding: 5px 2px; border-bottom: 1px solid var(--oa-line); font-size: 12px; }
  #oshi-rough .oa-recipe-row span { color: var(--oa-subtle); font-size: 11px; }
  #oshi-rough .oa-recipe-row strong { font-weight: 500; overflow-wrap: anywhere; }
  #oshi-rough .oa-recipe-stock { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 7px; font-size: 12px; }
  #oshi-rough .oa-recipe-stock b { font-weight: 500; }
  #oshi-rough .oa-recipe-stock .is-short { color: #b3433d; }
  #oshi-rough .oa-recipe-actions { display: grid; gap: 8px; margin-top: 12px; }
  #oshi-rough .oa-recipe-actions .oa-action { width: 100%; min-height: 44px; padding: 9px 13px; font-size: 13px; cursor: pointer; }
  #oshi-rough .oa-recipe-actions .oa-recipe-share { justify-content: space-between; border: 1px solid #9990b3; background: var(--oa-lime); color: #655b87; font-size: 14px; font-weight: 650; }
  #oshi-rough .oa-recipe-share .oa-action-arrow { font-size: 20px; line-height: 1; }
  #oshi-rough .oa-recipe-actions .oa-recipe-edit { justify-content: flex-start; border: 1px solid var(--oa-line); background: var(--oa-paper); }
  #oshi-rough .oa-recipe-actions .oa-recipe-edit.is-current-primary { justify-content: space-between; border-color: #9990b3; background: var(--oa-lime); color: #655b87; }
  #oshi-rough .oa-recipe-edit.is-current-primary .oa-action-arrow { margin-left: auto; }
  #oshi-rough .oa-recipe-preview-control { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--oa-line); }
  #oshi-rough .oa-recipe-preview-label { color: var(--oa-subtle); font-size: 11px; }
  #oshi-rough .oa-recipe-view-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
  #oshi-rough .oa-recipe-view-actions.is-single { grid-template-columns: 1fr; }
  #oshi-rough .oa-recipe-view-actions .oa-recipe-range { width: 100%; }
  #oshi-rough .oa-recipe-center-note { margin: 7px 2px 0; color: var(--oa-subtle); font-size: 11px; line-height: 1.4; }
  #oshi-rough .oa-recipe-range { display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 40px; padding: 7px 10px; border: 1px solid var(--oa-line); border-radius: 11px; background: var(--oa-cloud); color: var(--oa-ink); font-size: 12px; cursor: pointer; }
  #oshi-rough .oa-recipe-range[aria-pressed="true"] { border-color: #8dd3ed; background: #e9f7ff; }
  #oshi-rough .oa-recipe-switch { position: relative; width: 25px; height: 15px; border-radius: 999px; background: #bbc9cf; transition: background .15s ease; }
  #oshi-rough .oa-recipe-switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 11px; height: 11px; border-radius: 50%; background: white; transition: transform .15s ease; }
  #oshi-rough .oa-recipe-range[aria-pressed="true"] .oa-recipe-switch { background: var(--oa-blue); }
  #oshi-rough .oa-recipe-range[aria-pressed="true"] .oa-recipe-switch::after { transform: translateX(10px); }
  #oshi-rough .oa-recipe-share:focus-visible, #oshi-rough .oa-recipe-edit:focus-visible, #oshi-rough .oa-recipe-range:focus-visible { outline: 2px solid var(--oa-blue); outline-offset: 2px; }
  #oshi-rough .oa-recipe-share:active, #oshi-rough .oa-recipe-edit:active, #oshi-rough .oa-recipe-range:active { transform: scale(.99); }
  #oshi-rough .oa-recipe-note { margin: 7px 2px 0; color: var(--oa-subtle); font-size: 11px; line-height: 1.4; }

  #oshi-rough .oa-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 40px;
    padding: 8px 13px;
    border-radius: 12px;
    color: var(--oa-ink);
    background: var(--oa-cloud);
    font-size: 12px;
    font-weight: 500;
  }

  #oshi-rough .oa-action.is-primary {
    color: #655b87;
    background: var(--oa-lime);
  }
  #oshi-rough .oa-action.is-primary:disabled {
    color: #60737c;
    background: #dce4e6;
    cursor: not-allowed;
  }


  #oshi-rough .oa-status {
    min-height: 18px;
    margin-top: 8px;
    color: var(--oa-subtle);
    font-size: 11px;
  }
  #oshi-rough .oa-status:empty { min-height: 0; margin-top: 0; }

  @media (max-width: 600px) {
    html, body { margin: 0; padding: 0; }
    #oshi-rough .oa-stage { display: block; }
    #oshi-rough .oa-phone {
      width: 100%;
      max-width: none;
      min-height: 100dvh;
      border: 0;
      border-radius: 0;
      box-shadow: none;
    }
    #oshi-rough .oa-crop-editor { max-width: none; box-shadow: none; }
    #oshi-rough .oa-crop-frame { max-width: calc(100% - 128px); }
  }

  /* Keep one mobile-first workspace on wider screens without a fake device frame. */
  @media (min-width: 601px) {
    html, body { margin: 0; padding: 0; }
    #oshi-rough .oa-phone {
      width: min(100%, 760px);
      max-width: none;
      min-height: 100dvh;
      border: 0;
      border-radius: 0;
      box-shadow: none;
    }
    #oshi-rough .oa-crop-editor { max-width: 760px; box-shadow: none; }
  }

  @media (max-width: 380px) {
    #oshi-rough .oa-canvas { padding-left: 16px; padding-right: 61px; }
    #oshi-rough .oa-phone[data-side="left"] .oa-canvas { padding-left: 61px; padding-right: 16px; }
    #oshi-rough .oa-rail { right: 6px; }
    #oshi-rough .oa-phone[data-side="left"] .oa-rail { left: 6px; }
    #oshi-rough .oa-rail-button,
    #oshi-rough .oa-rail-guide { width: 49px; }
    #oshi-rough .oa-fields { grid-template-columns: 1fr 1fr; gap: 7px; }
    #oshi-rough .oa-panel { padding-inline: 12px; }
    #oshi-rough .oa-layout-option { gap: 5px; padding-inline: 6px; }
    #oshi-rough .oa-layout-option svg { flex-basis: 36px; width: 36px; }
    #oshi-rough .oa-layout-option-text strong { font-size: 11px; }
    #oshi-rough .oa-layout-option-text small { font-size: 8px; }
  }

  @media (prefers-reduced-motion: reduce) {
    #oshi-rough *, #oshi-rough *::before, #oshi-rough *::after {
      scroll-behavior: auto !important;
      transition-duration: .01ms !important;
    }
  }
#oshi-rough .oa-help-menu {
  position: absolute;
  z-index: 21;
  top: 68px;
  left: 10px;
  width: min(300px, calc(100% - 20px));
  padding: 14px;
  border: 1px solid #dcd8e6;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 30px #24313a33;
  font-size: 13px;
  line-height: 1.6;
}
#oshi-rough .oa-help-menu strong { font-size: 15px; }
#oshi-rough .oa-help-menu ol { margin: 8px 0; padding-left: 22px; }
#oshi-rough .oa-help-menu a { color: #087dae; }
#oshi-rough .oa-help-menu button {
  display: block;
  min-height: 40px;
  width: 100%;
  margin-top: 10px;
  border: 1px solid #dcd8e6;
  border-radius: 11px;
  background: #f8f8fb;
  color: #35343e;
  font: inherit;
}

/* Separate the source of saved work from recipe files, also with guide off. */
#oshi-rough .oa-save-menu .oa-save-group { padding: 12px; margin-top: 12px; border: 1px solid #dcd8e6; border-radius: 12px; }
#oshi-rough .oa-save-menu .oa-saved-work { background: #f8f8fb; }
#oshi-rough .oa-save-menu h3 { margin: 0 0 8px; font-size: 13px; line-height: 1.5; }
#oshi-rough .oa-save-menu .oa-save-hint { margin: 8px 0 0; }
#oshi-rough .oa-save-menu .oa-save-new { margin-top: 18px; padding-top: 8px; border-top: 1px solid #dcd8e6; }
#oshi-rough .oa-save-menu .oa-storage-note { margin: 12px 0; }
#oshi-rough .oa-save-menu [hidden] { display: none !important; }
