.org-dialog { width:min(100% - 28px, 660px); max-height:calc(100dvh - 36px); margin:auto; padding:24px; overflow-y:auto; overflow-x:hidden; overscroll-behavior:contain; border:1px solid var(--border,#d7dfe9); border-radius:26px; background:var(--surface,#ffffff); color:var(--text,#152234); box-shadow:0 24px 90px #302c2333; }
.org-dialog::backdrop { background:#25291f80; backdrop-filter:blur(4px); }
.org-dialog *, .org-print-area * { box-sizing:border-box; }
.org-icon { width:20px; height:20px; flex:none; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.org-box-placeholder .org-icon { width:28px; height:28px; }
.org-dialog [hidden] { display:none !important; }
.org-header { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:10px; }
.org-heading { margin:4px 0 0; font-size:25px; font-weight:740; letter-spacing:-.6px; line-height:1.2; overflow-wrap:anywhere; }
.org-heading:focus { outline:none; }
.org-close { flex:none; width:44px; height:44px; padding:0; border:0; border-radius:50%; background:var(--accent-soft); color:var(--muted); font-size:27px; cursor:pointer; }
.org-intro { margin:0 0 24px; color:var(--muted,#52647b); font-size:14px; line-height:1.55; }
.org-content { min-width:0; }
.org-footer:not(:empty) { display:grid; gap:12px; margin-top:20px; }
.org-form { display:grid; gap:18px; }
.org-field { display:grid; min-width:0; gap:8px; }
.org-field > label { font-size:13px; font-weight:650; }
.org-input { width:100%; min-width:0; min-height:50px; padding:12px 13px; border:1px solid var(--border); border-radius:13px; background:var(--surface-strong); color:inherit; font:inherit; font-size:16px; line-height:1.4; }
textarea.org-input { min-height:94px; resize:vertical; }
.org-dialog button { font-family:inherit; }
.org-dialog button:focus-visible, .org-dialog input:focus-visible, .org-dialog select:focus-visible, .org-dialog textarea:focus-visible { outline:3px solid #243e5c66; outline-offset:3px; }
.org-dialog button:disabled { opacity:.55; cursor:wait; }
.org-dialog [aria-busy=true] { cursor:wait; }
.org-button { width:100%; min-height:52px; padding:13px 16px; border:1px solid transparent; border-radius:15px; font-size:15px; font-weight:680; line-height:1.4; cursor:pointer; overflow-wrap:anywhere; }
.org-primary { color:#fff; background:var(--accent,#243e5c); }
.org-primary:hover:enabled { background:var(--accent-dark,#192d45); }
.org-secondary { color:var(--accent,#243e5c); background:var(--accent-soft,#e8edf4); border-color:var(--border); }
.org-inline-button { min-height:44px; padding:9px 4px; border:0; background:transparent; color:var(--accent,#243e5c); font-size:13px; font-weight:650; text-align:left; line-height:1.45; cursor:pointer; }
.org-danger { color:#924a3d; }
.org-hint { margin:0; color:var(--muted,#52647b); font-size:12px; line-height:1.5; }
.org-destination { margin:0; padding:13px 14px; border-radius:13px; background:var(--accent-soft,#e8edf4); color:var(--accent-dark,#192d45); font-size:13px; line-height:1.5; overflow-wrap:anywhere; }
.org-message { margin:18px 0 0; padding:13px 15px; border-radius:13px; font-size:13px; line-height:1.55; overflow-wrap:anywhere; }
.org-message-error { background:#fff0e9; color:#8f4539; border:1px solid #ebd3c8; }
.org-message-status { background:#e8edf4; color:#192d45; }
.org-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-bottom:20px; }
.org-actions-compact { display:flex; flex-wrap:wrap; gap:8px; margin:10px 0 0; }
.org-box-list { display:grid; gap:10px; }
.org-box-card { display:grid; grid-template-columns:66px minmax(0,1fr) 16px; gap:14px; align-items:center; width:100%; padding:13px; border:1px solid var(--border,#d7dfe9); border-radius:18px; background:#fff; color:inherit; text-align:left; cursor:pointer; }
.org-box-thumb, .org-box-placeholder { width:66px; height:76px; border-radius:12px; object-fit:cover; }
.org-box-placeholder { display:grid; place-items:center; background:#e8edf4; color:#243e5c; font-size:34px; }
.org-box-card-copy { display:grid; gap:4px; min-width:0; overflow-wrap:anywhere; }
.org-eyebrow { color:var(--accent,#243e5c); font-size:12px; font-weight:750; letter-spacing:.06em; }
.org-box-card-name { font-size:16px; font-weight:700; }
.org-box-card-path, .org-box-card-count { color:var(--muted,#52647b); font-size:12px; line-height:1.4; }
.org-chevron { color:var(--accent,#243e5c); font-size:27px; }
.org-box-hero { margin:12px 0 22px; padding:22px; border:1px solid var(--border); border-radius:20px; background:var(--background); }
.org-box-number { margin:0 0 9px; color:var(--accent,#243e5c); font-size:clamp(30px,7vw,44px); font-weight:780; letter-spacing:.02em; line-height:1.15; }
.org-box-name { margin:0 0 7px; font-size:20px; overflow-wrap:anywhere; }
.org-box-path { margin:0; color:var(--muted); font-size:13px; line-height:1.55; overflow-wrap:anywhere; }
.org-location-photo { margin:22px 0 6px; padding:20px 0 0; border-top:1px solid var(--border,#d7dfe9); }
.org-photo-heading { margin:0 0 14px; font-size:16px; }
.org-photo-open { display:block; width:100%; padding:0; overflow:hidden; border:0; border-radius:18px; background:var(--background); color:var(--accent,#243e5c); text-align:left; cursor:pointer; }
.org-photo-open img { display:block; width:100%; height:auto; max-height:280px; object-fit:contain; background:var(--background); }
.org-photo-open span { display:block; padding:11px 14px; font-size:12px; font-weight:650; }
.org-photo-empty { margin:0; padding:18px; border:1px dashed var(--border); border-radius:16px; background:var(--background); color:var(--muted,#52647b); font-size:13px; line-height:1.5; }
.org-full-photo { display:block; width:100%; height:auto; max-height:70dvh; object-fit:contain; border-radius:15px; background:var(--background); }
.org-section-heading { display:flex; justify-content:space-between; align-items:center; gap:16px; margin-bottom:16px; }
.org-section-heading h2 { margin:0; font-size:18px; }
.org-count { padding:5px 10px; border-radius:12px; background:#e8edf4; color:#243e5c; font-size:13px; font-weight:700; }
.org-item-list { overflow:hidden; margin:0 0 16px; border:1px solid var(--border,#d7dfe9); border-radius:18px; }
.org-item-row { display:grid; grid-template-columns:44px minmax(0,1fr); gap:0 8px; align-items:center; padding:10px; border-bottom:1px solid var(--border,#d7dfe9); background:#fff; }
.org-item-row:last-child { border:0; }
.org-select-hit { display:grid; place-items:center; width:44px; min-height:44px; cursor:pointer; }
.org-checkbox { width:23px; height:23px; margin:0; accent-color:var(--accent,#243e5c); cursor:pointer; }
.org-item-open { display:flex; align-items:center; gap:12px; min-width:0; min-height:48px; padding:4px 0; border:0; background:none; color:inherit; text-align:left; cursor:pointer; }
.org-item-thumb { flex:none; width:44px; height:48px; border-radius:10px; object-fit:cover; }
.org-item-copy { display:grid; min-width:0; gap:5px; overflow-wrap:anywhere; }
.org-item-copy strong { font-size:14px; line-height:1.4; }
.org-item-copy small { color:var(--muted,#52647b); font-size:12px; line-height:1.45; }
.org-move-one { grid-column:2; justify-self:start; }
.org-item-list + .org-hint { margin-bottom:12px; }
.org-empty { margin:0; padding:22px 18px; color:var(--muted,#52647b); font-size:14px; line-height:1.55; }
.org-move-summary { padding:16px; border:1px solid var(--border,#d7dfe9); border-radius:16px; background:var(--background); }
.org-move-summary > strong { font-size:14px; }
.org-move-summary > p { margin:8px 0 0; color:var(--muted,#52647b); font-size:13px; line-height:1.5; overflow-wrap:anywhere; }
.org-label-list { overflow:hidden; margin-top:14px; border:1px solid var(--border,#d7dfe9); border-radius:16px; }
.org-label-row { display:flex; gap:16px; align-items:center; min-height:76px; padding:14px 16px; border-bottom:1px solid var(--border,#d7dfe9); cursor:pointer; }
.org-label-row:last-child { border:0; }
.org-label-row > span { display:grid; min-width:0; gap:5px; overflow-wrap:anywhere; }
.org-label-row strong { font-size:14px; }
.org-label-row small { color:var(--muted,#52647b); font-size:12px; line-height:1.45; }
.org-label-layout { margin-top:30px; }
.org-label-layout > h2 { margin:0 0 12px; }
.org-label-choice + .org-label-choice { border-top:1px solid var(--border,#d7dfe9); }
.org-label-choice > .org-label-row { border:0; }
.org-printed-labels { margin-top:16px; }
.org-printed-labels > summary { min-height:44px; padding:12px 0; color:var(--muted,#52647b); font-size:13px; cursor:pointer; }
.org-label-reset { margin:0 16px 10px 54px; }
.org-print-confirmation { display:grid; gap:8px; padding:16px; background:var(--accent-soft,#e8edf4); border-radius:15px; font-size:14px; }
.org-print-area { display:none; }
@media(max-width:420px) {
  .org-dialog { width:calc(100% - 16px); padding:18px 14px; border-radius:20px; max-height:calc(100dvh - 20px); }
  .org-heading { font-size:23px; }
  .org-actions:not(.org-actions-compact) { grid-template-columns:1fr; }
  .org-box-hero { padding:18px 15px; }
  .org-item-open { gap:8px; }
  .org-item-thumb { width:36px; height:44px; }
  .org-box-card { grid-template-columns:54px minmax(0,1fr) 12px; gap:10px; }
  .org-box-thumb, .org-box-placeholder { width:54px; height:68px; }
}
/* One sheet coordinate system for both the interactive preview and print. */
.org-label-previews { display:grid; gap:20px; margin:16px 0; }
.org-sheet-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:8px; }
.org-sheet-heading h3 { margin:0; font-size:15px; }
.org-sheet-heading .org-inline-button { text-align:right; }
.org-sheet-orientation { margin:0 0 8px; font-size:12px; color:var(--muted,#52647b); }
.org-label-sheet { position:relative; width:100%; aspect-ratio:210 / 297; container-type:inline-size; background:#fff; color:#000; font-family:Arial,sans-serif; }
.org-preview-group .org-label-sheet { box-shadow:0 0 0 1px var(--border),0 3px 12px #0001; }
.org-label-slot, .org-label-sheet > .org-print-label { position:absolute; width:39.9142857143%; height:17.1043771044%; }
.org-label-slot { padding:0; border:0; outline:1px dashed #999; outline-offset:-1px; border-radius:0; background:#f5f5f5; cursor:pointer; color:#555; text-align:left; }
.org-label-slot[aria-pressed=true] { outline:2px solid var(--accent,#243e5c); outline-offset:-2px; background:#fff; }
.org-label-slot:focus-visible { z-index:1; }
.org-slot-empty { display:block; padding:8px; font-size:12px; text-align:center; }
.org-print-label { display:flex; align-items:center; gap:1cqw; padding:1.43cqw; overflow:hidden; background:#fff; color:#000; text-align:left; }
.org-label-slot .org-print-label { width:100%; height:100%; }
.org-print-copy { flex:1; min-width:0; overflow:hidden; }
.org-print-label h2 { margin:0; font-size:4.25cqw; line-height:1.1; font-weight:700; }
.org-print-qr { flex:none; width:16.19cqw; height:16.19cqw; background:#fff; }
.org-print-qr svg { display:block; width:100%; height:100%; fill:#000; stroke:none; }
@media print {
  @page { size:A4 portrait; margin:0; }
  html, body { width:auto !important; min-width:0 !important; margin:0 !important; padding:0 !important; background:white !important; }
  body > :not(.org-print-area) { display:none !important; }
  .org-print-area { display:block !important; color:#000; background:#fff; }
  .org-print-area .org-label-sheet { width:210mm; height:297mm; aspect-ratio:auto; break-inside:avoid; break-after:page; page-break-after:always; }
  .org-print-area .org-label-sheet:last-child { break-after:auto; page-break-after:auto; }
  dialog.org-dialog { display:none !important; }
  dialog.org-dialog::backdrop { background:transparent !important; backdrop-filter:none !important; }
}

/* Keep the actual modal/selection/save behaviour; apply the approved compact visual system. */
@media screen {
  .org-dialog { width:min(calc(100% - 28px),560px); max-width:calc(100% - 16px); padding:20px; border-radius:12px; background:var(--background); box-shadow:0 16px 60px #15223426; }
  .org-dialog::backdrop { background:#15223466; }
  .org-heading { font-size:26px; font-weight:650; letter-spacing:-.8px; }
  .org-close { display:grid; place-items:center; border-radius:8px; }
  .org-intro { margin-bottom:18px; font-size:13px; }
  .org-form { gap:13px; }
  .org-field { gap:6px; }
  .org-field > label { font-weight:500; }
  .org-input { min-height:46px; padding:10px 11px; border-radius:8px; background:var(--surface-strong); border-color:var(--border); }
  textarea.org-input { min-height:72px; }
  .org-dialog button:focus-visible, .org-dialog input:focus-visible, .org-dialog select:focus-visible, .org-dialog textarea:focus-visible { outline-color:var(--accent); }
  .org-button { min-height:48px; padding:11px 12px; border-radius:8px; font-size:14px; font-weight:600; text-align:center; }
  .org-secondary { background:var(--surface-strong); color:var(--text); border-color:var(--border); }
  .org-inline-button { font-weight:500; }
  .org-destination, .org-message, .org-move-summary { border-radius:8px; }
  .org-box-card, .org-item-list, .org-label-list { border-radius:10px; }
  .org-box-thumb, .org-box-placeholder, .org-item-thumb { border-radius:8px; }
  .org-box-placeholder { background:var(--accent-soft); color:var(--accent); }
  .org-location-dialog .org-header { margin-bottom:0; align-items:center; }
  .org-location-dialog .org-heading { font-size:13px; font-weight:500; color:var(--muted); letter-spacing:0; }
  .org-box-hero { margin:0 0 16px; padding:0; border:0; border-radius:0; background:none; }
  .org-box-number { margin-bottom:5px; font-size:13px; font-weight:600; letter-spacing:0; }
  .org-box-name { margin-bottom:5px; font-size:28px; font-weight:650; letter-spacing:-.8px; }
  .org-box-path { color:var(--muted); font-size:13px; }
  .org-box-hero .org-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-top:13px; }
  .org-box-hero .org-inline-button { border:1px solid var(--border); border-radius:8px; background:var(--surface-strong); padding:9px; font-size:12px; text-align:center; }
  .org-section-heading { margin-bottom:5px; }
  .org-section-heading h2 { font-size:14px; font-weight:600; }
  .org-count { background:transparent; color:var(--muted); padding:0; font-weight:400; }
  .org-item-list { border:0; border-radius:0; margin-bottom:8px; }
  .org-item-row { grid-template-columns:44px minmax(0,1fr) 44px; gap:7px; padding:7px 0; min-height:64px; background:transparent; }
  .org-select-hit { width:44px; }
  .org-checkbox { width:18px; height:18px; }
  .org-item-open { gap:8px; }
  .org-item-copy { gap:2px; }
  .org-item-copy strong { font-size:13px; font-weight:500; }
  .org-item-copy small { font-size:12px; }
  .org-item-thumb { width:44px; height:44px; }
  .org-move-one { display:grid; place-items:center; grid-column:3; grid-row:1; width:44px; min-height:44px; padding:0; color:var(--muted); }
  .org-location-dialog .org-content > .org-actions { display:grid; grid-template-columns:1fr; gap:8px; margin-top:10px; }
  .org-location-dialog .org-content > .org-actions > :first-child { border-radius:8px; background:var(--accent); color:white; font-weight:600; text-align:center; min-height:48px; padding:12px; }
  .org-location-photo { display:grid; grid-template-columns:76px minmax(0,1fr); gap:0 12px; margin-top:16px; padding-top:16px; }
  .org-photo-heading { grid-column:2; margin:0; font-size:14px; font-weight:600; }
  .org-photo-open { grid-column:1; grid-row:1 / span 2; border-radius:8px; align-self:start; background:var(--surface-strong); }
  .org-photo-open img { width:76px; height:76px; object-fit:cover; background:var(--surface-strong); }
  .org-photo-open span { padding:5px; font-size:11px; }
  .org-location-photo .org-actions { grid-column:2; margin-top:8px; gap:8px; }
  .org-location-photo .org-inline-button { font-size:12px; }
  .org-photo-empty { grid-column:1 / -1; border-radius:8px; background:var(--surface-strong); }
  .org-location-photo:not(.has-photo) { display:block; text-align:center; }
  .org-location-photo:not(.has-photo) .org-photo-heading { margin-bottom:10px; }
  .org-location-photo:not(.has-photo) .org-actions { justify-content:center; }
  .org-full-photo { border-radius:8px; }
  .org-manual-dialog .org-heading { font-size:26px; }
  .org-manual-dialog .org-destination { margin-top:2px; padding:0; background:transparent; color:var(--muted); font-size:12px; }
  .org-manual-dialog .org-hint { font-size:12px; }
}
@media screen and (max-width:420px) {
  .org-dialog { width:calc(100% - 16px); padding:16px 14px; border-radius:12px; }
  .org-heading, .org-manual-dialog .org-heading { font-size:24px; }
  .org-box-hero { padding:0; }
  .org-item-thumb { width:36px; height:40px; }
}

@media screen {
  .org-inline-button {
    min-height:44px; max-width:100%; padding:10px 12px;
    border:1px solid var(--border); border-radius:8px;
    background:var(--surface-strong); font-weight:600; text-align:center;
    overflow-wrap:anywhere;
  }
  .org-inline-button:hover:enabled { background:var(--accent-soft); border-color:var(--accent); }
  .org-inline-button.org-danger { color:#924a3d; background:#fff7f5; border-color:#e6c9c2; }
  .org-inline-button.org-danger:hover:enabled { background:#fbe8e3; border-color:#b46a5b; }
  .org-move-one { padding:0; }
  .org-printed-labels > summary { padding:12px; border:1px solid var(--border); border-radius:8px; background:var(--surface-strong); }
}
