    .admin-main > h1 {
      margin-bottom: 24px;
    }
    .admin-login-page {
      background:
        radial-gradient(circle at top left, rgba(107, 79, 58, 0.12), transparent 36%),
        linear-gradient(180deg, #E8DDCF 0%, #F7F4EF 100%);
    }
    .admin-login-shell {
      width: min(100%, 520px);
      margin: 12px auto 0;
    }
    .admin-login-card {
      max-width: none;
      background: var(--surface);
      border-radius: var(--radius);
      border: 1px solid rgba(107, 79, 58, 0.12);
      box-shadow: var(--shadow);
      padding: 28px;
    }
    .admin-login-card h2 {
      margin: 0 0 4px;
      font-size: 1.45rem;
      line-height: 1.2;
    }
    .admin-login-subtitle {
      margin: 0 0 18px;
      color: var(--muted);
      font-size: 0.95rem;
    }
    .admin-login-card form {
      display: grid;
      gap: 12px;
    }
    .admin-login-card input {
      margin-bottom: 0;
      border: 1px solid rgba(107, 79, 58, 0.18);
      border-radius: 12px;
      background: #fff;
      transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }
    .admin-login-card input:focus {
      outline: none;
      border-color: rgba(107, 79, 58, 0.55);
      box-shadow: 0 0 0 4px rgba(107, 79, 58, 0.12);
    }
    .admin-login-card button {
      margin-bottom: 0;
      border-radius: 999px;
      border: 1px solid transparent;
      background: var(--accent);
      color: #fff;
      font-weight: 600;
      box-shadow: 0 18px 35px rgba(107, 79, 58, 0.18);
      transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
      cursor: pointer;
    }
    .admin-login-card button:hover,
    .admin-login-card button:focus-visible {
      transform: translateY(-1px);
      background: var(--accent-soft);
      color: var(--text);
      border-color: var(--accent);
      box-shadow: none;
    }
    .admin-alert {
      margin: 0;
      padding: 10px 12px;
      border-radius: 10px;
      font-size: 0.92rem;
      font-weight: 500;
    }
    .admin-alert-error {
      color: #9f1c1c;
      background: #fdecec;
      border: 1px solid #f4caca;
    }
    .admin-alert-success {
      color: #0f5132;
      background: #e9f9ef;
      border: 1px solid #bfe7cc;
    }
    .admin-authenticated .admin-main {
      background:
        radial-gradient(circle at top left, rgba(107, 79, 58, 0.1), transparent 38%),
        linear-gradient(180deg, #E8DDCF 0%, #F7F4EF 100%);
    }
    .admin-container {
      display: flex;
      border: 1px solid rgba(107, 79, 58, 0.12);
      border-radius: var(--radius);
      overflow: hidden;
      background: var(--surface);
      box-shadow: var(--shadow);
    }
    .sidebar { width: 270px; background: linear-gradient(180deg, #F7F4EF 0%, #E8DDCF 100%); padding: 20px; border-right: 1px solid rgba(107, 79, 58, 0.12); flex-shrink: 0; }
    .sidebar ul { list-style: none; padding: 0; margin: 0; }
    .sidebar li { margin-bottom: 8px; }
    .sidebar a { text-decoration: none; color: #6B4F3A; padding: 11px 14px; display: flex; align-items: center; gap: 10px; border-radius: 12px; border: 1px solid transparent; font-weight: 600; transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease; }
    .sidebar a:hover { background: #E8DDCF; border-color: rgba(107, 79, 58, 0.18); }
    .sidebar a.active { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 12px 22px rgba(107, 79, 58, 0.2); }
    .sidebar .menu-icon { width: 20px; text-align: center; font-size: 1.05rem; flex-shrink: 0; }
    .content { flex: 1; min-width: 0; padding: 24px; background: #fff; }
    .content > h2 { margin-top: 0; margin-bottom: 18px; }
    .content > p { margin-top: 0; }
    .admin-form { max-width: 860px; margin: 0; }
    .content > .admin-form,
    .content > form {
      background: #F7F4EF;
      border: 1px solid rgba(107, 79, 58, 0.12);
      border-radius: 16px;
      box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
      padding: 16px;
      margin-bottom: 14px;
    }
    .admin-form input, .admin-form select, .admin-form button, .admin-form textarea {
      width: 100%;
      margin-bottom: 10px;
      padding: 10px;
      border: 1px solid rgba(107, 79, 58, 0.18);
      border-radius: 12px;
      background: #fff;
      color: var(--text);
      font: inherit;
      transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    }
    .admin-form input:focus,
    .admin-form select:focus,
    .admin-form textarea:focus {
      outline: none;
      border-color: rgba(107, 79, 58, 0.55);
      box-shadow: 0 0 0 4px rgba(107, 79, 58, 0.12);
    }
    .admin-form button,
    .content button {
      border-radius: 999px;
      border: 1px solid transparent;
      background: var(--accent);
      color: #fff;
      font-weight: 600;
      cursor: pointer;
      transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
      box-shadow: 0 12px 24px rgba(107, 79, 58, 0.16);
    }
    .admin-form button:hover,
    .admin-form button:focus-visible,
    .content button:hover,
    .content button:focus-visible {
      transform: translateY(-1px);
      background: var(--accent-soft);
      color: var(--text);
      border-color: var(--accent);
      box-shadow: none;
    }
    .photo-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; margin-top: 20px; }
    .photo-item { border: 1px solid rgba(107, 79, 58, 0.12); padding: 14px; text-align: left; border-radius: 14px; background: #fff; box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06); }
    .photo-item-dirty { border-color: rgba(107, 79, 58, 0.38); box-shadow: 0 10px 24px rgba(107, 79, 58, 0.14); }
    .photo-item-client-owned { border-color: rgba(107, 79, 58, 0.24); }
    .photo-item-rights-pending {
      border-color: rgba(180, 35, 24, 0.45);
      background: linear-gradient(180deg, #fff6f5 0%, #F7F4EF 100%);
      box-shadow: 0 8px 20px rgba(180, 35, 24, 0.08);
    }
    .photo-item-rights-pending .home-focus-preview,
    .photo-item-rights-pending .photo-item > img,
    .photo-item-rights-pending [data-home-focus-image] {
      opacity: 0.88;
    }
    .photo-item > img { width: 100%; height: 180px; object-fit: contain; object-position: center; border-radius: 8px; margin-bottom: 10px; background: #E8DDCF; }
    .photo-item h4 { margin: 0 0 12px; }
    .photo-card-summary {
      width: 100%;
      padding: 0;
      border: 0;
      margin: 0;
      background: transparent;
      box-shadow: none;
      text-align: left;
      display: grid;
      gap: 10px;
      cursor: pointer;
    }
    .photo-card-summary:hover,
    .photo-card-summary:focus-visible {
      transform: none !important;
      background: transparent !important;
      box-shadow: none !important;
      border-color: transparent !important;
    }
    .photo-card-summary:focus-visible {
      outline: 2px solid rgba(107, 79, 58, 0.36);
      outline-offset: 6px;
      border-radius: 10px;
    }
    .photo-card-summary .photo-owner-meta {
      margin-bottom: 0;
    }
    .photo-card-image {
      width: 100%;
      aspect-ratio: 4 / 3;
      object-fit: cover;
      object-position: center;
      border-radius: 10px;
      background: #E8DDCF;
      border: 1px solid rgba(107, 79, 58, 0.12);
    }
    .photo-card-summary-action {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: fit-content;
      padding: 4px 10px;
      border-radius: 999px;
      border: 1px dashed rgba(107, 79, 58, 0.28);
      background: #f6f9ff;
      color: #6B4F3A;
      font-size: 0.74rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.03em;
    }
    .photo-editor-panel[hidden] { display: none !important; }
    .photo-owner-meta { display: flex; gap: 8px; flex-wrap: wrap; margin: -4px 0 8px; }
    .photo-owner-badge {
      display: inline-flex;
      align-items: center;
      padding: 4px 10px;
      border-radius: 999px;
      border: 1px solid rgba(107, 79, 58, 0.14);
      background: #f7fafc;
      color: #6B4F3A;
      font-size: 0.78rem;
      font-weight: 600;
      line-height: 1.2;
    }
    .photo-owner-badge-success {
      background: #edf9f0;
      border-color: #bfe7cc;
      color: #0f5132;
    }
    .photo-owner-badge-warning {
      background: #fff1f1;
      border-color: #f4caca;
      color: #9f1c1c;
    }
    .photo-owner-badge-icon {
      min-width: 30px;
      justify-content: center;
      padding: 4px 8px;
      font-size: 0.9rem;
      line-height: 1;
    }
    .photo-owner-badge-icon-landscape {
      background: #eef5ff;
      border-color: #cddff7;
      color: #6B4F3A;
    }
    .photo-owner-badge-icon-portrait {
      background: #edf9f4;
      border-color: #c6eadb;
      color: #0f5a3a;
    }
    .photo-owner-badge-icon-album {
      background: #fff6eb;
      border-color: #f4debb;
      color: #8a4f16;
    }
    .photo-edit-form { display: grid; gap: 8px; }
    .photo-edit-form label { font-size: 0.92rem; font-weight: 600; }
    .photo-edit-form input, .photo-edit-form textarea { width: 100%; margin-bottom: 0; }
    .photo-field-row { display: grid; grid-template-columns: 130px 1fr; align-items: center; gap: 10px; }
    .photo-field-row label { margin: 0; }
    .photo-field-row input { margin: 0; }
    @media (max-width: 900px) {
      .photo-field-row { grid-template-columns: 130px 1fr; gap: 10px; }
    }
    .photo-edit-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
    .photo-edit-actions button { width: auto; margin-bottom: 0; }
    .photo-edit-form.is-dirty { outline: 2px solid rgba(107, 79, 58, 0.18); outline-offset: 8px; border-radius: 12px; }
    body.photo-lightbox-open { overflow: hidden; }
    .photo-editor-lightbox {
      position: fixed;
      inset: 0;
      z-index: 15000;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 24px;
    }
    .photo-editor-lightbox.is-open { display: flex; }
    .photo-editor-lightbox-backdrop {
      position: absolute;
      inset: 0;
      background: rgba(15, 23, 42, 0.56);
      backdrop-filter: blur(2px);
    }
    .photo-editor-lightbox-dialog {
      position: relative;
      z-index: 1;
       width: min(980px, 96vw);
      max-height: calc(100vh - 48px);
      overflow: hidden;
      display: grid;
      grid-template-rows: auto 1fr;
      background: #fff;
      border: 1px solid rgba(107, 79, 58, 0.18);
      border-radius: 16px;
      box-shadow: 0 24px 48px rgba(15, 23, 42, 0.36);
    }
    .photo-editor-lightbox-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      padding: 14px 16px;
      border-bottom: 1px solid rgba(107, 79, 58, 0.14);
      background: #f8fbff;
    }
    .photo-editor-lightbox-title { margin: 0; font-size: 1rem; color: #6B4F3A; }
    .photo-editor-lightbox-close { width: auto !important; margin: 0 !important; padding: 8px 14px !important; min-width: 100px; }
    .photo-editor-lightbox-body { overflow: auto; padding: 16px; background: #fff; }
    .photo-editor-lightbox-body { min-height: 0; }
    .photo-editor-lightbox-body .photo-edit-form { max-width: none; }
    .photo-editor-inner-layout { display: grid; grid-template-columns: minmax(300px, 360px) 1fr; gap: 0 18px; align-items: start; }
    .photo-editor-inner-left { position: sticky; top: 0; }
    .photo-editor-inner-right { display: grid; gap: 6px; }
    .photo-editor-inner-actions { display: flex; gap: 10px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
    .photo-editor-inner-actions [data-photo-delete-form] { margin: 0; }
    .photo-editor-lightbox-body .home-focus-preview { max-height: clamp(260px, 44vh, 360px); }
    .delete-button { background: #b42318 !important; color: #fff !important; border: 1px solid transparent !important; box-shadow: 0 10px 20px rgba(180, 35, 24, 0.2) !important; }
    .delete-button:hover,
    .delete-button:focus-visible { background: #fdecec !important; color: #9f1c1c !important; border-color: #f4caca !important; box-shadow: none !important; }
    .photo-category-group { margin-bottom: 30px; }
    .photo-category-group h3 { margin: 0 0 10px; color: #6B4F3A; }
    .review-status-group { margin-bottom: 24px; }
    .review-admin-list { display: grid; gap: 14px; }
    .review-admin-card {
      background: #fff;
      border: 1px solid rgba(107, 79, 58, 0.12);
      border-radius: 14px;
      padding: 14px;
      box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    }
    .review-admin-header {
      display: flex;
      justify-content: space-between;
      gap: 14px;
      align-items: flex-start;
      flex-wrap: wrap;
      margin-bottom: 8px;
    }
    .review-admin-meta {
      margin: 2px 0 0;
      color: var(--muted);
      font-size: 0.88rem;
    }
    .review-admin-comment {
      margin: 10px 0 12px;
      padding: 10px 12px;
      border-radius: 10px;
      background: #f8fafd;
      border: 1px solid #e4ecf8;
    }
    .review-admin-actions {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
    }
    .review-admin-actions form {
      margin: 0;
    }
    .review-admin-actions button {
      min-width: 130px;
      margin-bottom: 0;
    }
    .delivery-admin-layout {
      display: grid;
      gap: 18px;
      grid-template-columns: 1fr;
      align-items: start;
    }
    .delivery-top-row {
      display: grid;
      gap: 18px;
      grid-template-columns: minmax(280px, 420px) minmax(280px, 420px);
      align-items: stretch;
      justify-content: start;
    }
    .delivery-client-panel {
      background: #F7F4EF;
      border: 1px solid rgba(107, 79, 58, 0.12);
      border-radius: 16px;
      box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
      padding: 16px;
      min-height: 0;
      display: flex;
      flex-direction: column;
    }
    .delivery-client-panel h3 {
      margin: 0 0 10px;
    }
    .delivery-client-list {
      display: grid;
      gap: 8px;
      margin: 0;
      overflow-y: auto;
      padding-right: 4px;
      cursor: grab;
      user-select: none;
      min-height: 0;
      max-height: 100%;
    }
    .delivery-client-list.is-dragging {
      cursor: grabbing;
    }
    .delivery-client-chip {
      display: inline-flex;
      align-items: center;
      justify-content: flex-start;
      padding: 10px 12px;
      border-radius: 12px;
      border: 1px solid rgba(107, 79, 58, 0.16);
      text-decoration: none;
      color: #6B4F3A;
      background: #fff;
      font-weight: 600;
      transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    }
    .delivery-client-chip:hover {
      background: var(--accent-soft);
      border-color: rgba(107, 79, 58, 0.32);
    }
    .delivery-client-chip.active {
      background: var(--accent);
      color: #fff;
      border-color: var(--accent);
    }
    .delivery-client-chip--new {
      background: #f0f6ff;
      border-style: dashed;
    }
    .delivery-client-chip--new:hover {
      background: var(--accent-soft);
    }
    .delivery-client-chip--new.active {
      background: var(--accent);
      color: #fff;
      border-style: solid;
    }
    .delivery-client-form-panel {
      background: #F7F4EF;
      border: 1px solid rgba(107, 79, 58, 0.12);
      border-radius: 16px;
      box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
      padding: 16px;
    }
    .delivery-client-form-panel .admin-form {
      margin: 0;
      max-width: none;
    }
    .delivery-photo-assignment {
      background: #F7F4EF;
      border: 1px solid rgba(107, 79, 58, 0.12);
      border-radius: 16px;
      box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
      padding: 16px;
    }
    .delivery-photo-assignment h3 {
      margin-top: 0;
    }
    .delivery-photo-category {
      margin-bottom: 16px;
    }
    .delivery-photo-category h4 {
      margin: 0 0 10px;
      color: #6B4F3A;
    }
    .delivery-photo-grid {
      display: grid;
      gap: 10px;
      grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
    .delivery-photo-tile {
      border: 1px solid rgba(107, 79, 58, 0.14);
      border-radius: 12px;
      padding: 8px;
      background: #fff;
      display: grid;
      gap: 8px;
      cursor: pointer;
      transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
      position: relative;
      outline: none;
    }
    .delivery-photo-tile:hover {
      border-color: rgba(107, 79, 58, 0.36);
      transform: translateY(-1px);
    }
    .delivery-photo-tile:focus-visible {
      box-shadow: 0 0 0 2px rgba(107, 79, 58, 0.22);
    }
    .delivery-photo-tile.is-selected {
      border-color: var(--accent);
      border-width: 3px;
      box-shadow: none;
    }
    .delivery-photo-tile img {
      width: 100%;
      aspect-ratio: 4 / 3;
      object-fit: cover;
      border-radius: 8px;
      background: #E8DDCF;
    }
    .delivery-photo-toggle {
      position: absolute;
      opacity: 0;
      pointer-events: none;
    }
    .delivery-photo-name {
      font-size: 0.84rem;
      color: #4b5563;
      margin: 0;
      word-break: break-word;
    }
    .delivery-rights-form {
      margin: 0;
    }
    .delivery-password-field-row {
      display: flex;
      align-items: stretch;
      gap: 8px;
    }
    .delivery-password-field-row input {
      flex: 1;
      margin-bottom: 0;
    }
    .delivery-password-toggle {
      width: auto !important;
      min-width: 110px;
      margin-bottom: 0 !important;
      padding: 8px 14px !important;
      white-space: nowrap;
      border-radius: 999px !important;
    }
    .delivery-rights-toggle {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      margin: 0;
      padding-top: 0;
      font-weight: 600;
      color: #6B4F3A;
      cursor: pointer;
      white-space: nowrap;
    }
    .delivery-rights-toggle input[type="checkbox"] {
      width: auto;
      margin: 0;
      transform: scale(1.15);
      accent-color: var(--accent);
    }
    .home-focus-editor { display: grid; gap: 10px; margin: 0 0 12px; }
    .home-focus-preview-shell { display: block; }
    .home-focus-preview { position: relative; width: 100%; aspect-ratio: var(--preview-ratio, 4 / 3); overflow: hidden; border-radius: 12px; border: 1px solid #d8dee9; background: #e8edf5; touch-action: none; user-select: none; -webkit-user-select: none; }
    .home-focus-preview img { width: 100%; height: 100%; object-fit: contain; object-position: center; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; pointer-events: none; }
    .home-focus-frame { position: absolute; border: 2px solid rgba(255, 255, 255, 0.95); box-shadow: 0 0 0 1px rgba(107, 79, 58, 0.18), 0 6px 20px rgba(15, 23, 42, 0.14); border-radius: 0; background: rgba(107, 79, 58, 0.08); user-select: none; -webkit-user-select: none; }
    .home-focus-frame::before, .home-focus-frame::after { position: absolute; pointer-events: none; }
    .home-focus-frame::before { content: ''; }
    .home-focus-frame-landscape { width: 100%; aspect-ratio: 3 / 1; left: 0; top: 0; cursor: ns-resize; }
    .home-focus-frame-landscape::before { left: 0; right: 0; top: 50%; border-top: 2px dashed rgba(255, 255, 255, 0.9); transform: translateY(-50%); }
    .home-focus-frame-portrait { height: 100%; aspect-ratio: 2 / 3; top: 0; left: 0; cursor: ew-resize; }
    .home-focus-frame-portrait::before { top: 0; bottom: 0; left: 50%; border-left: 2px dashed rgba(255, 255, 255, 0.9); transform: translateX(-50%); }
    .home-focus-frame.is-hidden { display: none; }
    .home-focus-frame.is-active { box-shadow: 0 0 0 2px rgba(107, 79, 58, 0.35), 0 8px 24px rgba(15, 23, 42, 0.22); }
    .home-focus-editor.is-dragging .home-focus-preview { box-shadow: inset 0 0 0 2px rgba(107, 79, 58, 0.25); }
    .home-focus-editor.is-dragging .home-focus-preview,
    .home-focus-editor.is-dragging .home-focus-frame { cursor: grabbing !important; }
    .home-focus-value { margin: 0; font-size: 0.85rem; color: #4b5563; }
    .home-focus-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
    .home-visibility-controls { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
    .home-visibility-controls label { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 600; margin: 0; cursor: pointer; }
    .home-visibility-controls input[type="checkbox"] { width: auto; margin: 0; }
    .text-tabs { margin-bottom: 20px; }
    .save-overlay {
      position: fixed;
      inset: 0;
      display: grid;
      place-items: center;
      background: rgba(15, 23, 42, 0.24);
      backdrop-filter: blur(1px);
      z-index: 12000;
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transition: opacity 0.2s ease, visibility 0.2s ease;
    }
    .save-overlay.is-visible {
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
    }
    .save-overlay-card {
      width: min(92vw, 420px);
      padding: 18px 16px;
      border-radius: 14px;
      background: #fff;
      box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22);
      border: 1px solid rgba(107, 79, 58, 0.1);
      text-align: center;
    }
    .save-overlay-title {
      margin: 0 0 12px;
      color: #6B4F3A;
      font-size: 0.96rem;
      font-weight: 600;
    }
    .save-overlay-track {
      height: 8px;
      border-radius: 999px;
      background: #e7edf6;
      overflow: hidden;
    }
    .save-overlay-fill {
      width: 36%;
      height: 100%;
      border-radius: inherit;
      background: linear-gradient(90deg, #6B4F3A, #3f79b1);
      animation: saveOverlayProgress 1.1s ease-in-out infinite;
      transform: translateX(-100%);
    }
    .save-overlay-success .save-overlay-fill {
      width: 100%;
      transform: translateX(0);
      animation: none;
    }
    .save-overlay-success .save-overlay-title {
      color: #6B4F3A;
    }
    .save-overlay.is-fading {
      opacity: 0;
      visibility: hidden;
    }
    @keyframes saveOverlayProgress {
      0% { transform: translateX(-100%); }
      100% { transform: translateX(300%); }
    }
    @media (max-width: 900px) {
      .admin-container { flex-direction: column; }
      .sidebar {
        width: 100%;
        padding: 12px 16px;
        border-right: none;
        border-bottom: 1px solid rgba(107, 79, 58, 0.12);
        overflow-x: auto;
      }
      .sidebar ul {
        display: flex;
        gap: 8px;
        flex-wrap: nowrap;
      }
      .sidebar li {
        margin-bottom: 0;
        flex: 0 0 auto;
      }
      .sidebar a {
        white-space: nowrap;
        padding: 10px 14px;
        border: 1px solid #d8dee9;
        border-radius: 999px;
        background: #fff;
      }
      .content {
        padding: 16px 0 0;
      }
      .admin-form {
        max-width: none;
      }
      .content > .admin-form,
      .content > form {
        padding: 14px;
      }
      .photo-list {
        grid-template-columns: 1fr;
      }
      .delivery-admin-layout {
        grid-template-columns: 1fr;
      }
      .delivery-top-row {
        grid-template-columns: 1fr;
      }
      .delivery-password-field-row {
        flex-direction: column;
      }
      .delivery-password-toggle {
        width: 100% !important;
      }
      .photo-item {
        padding: 10px;
      }
      .photo-editor-lightbox {
        padding: 10px;
        align-items: flex-start;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
      }
      .photo-editor-lightbox-dialog {
        width: 100%;
        max-height: none;
        margin: 0 auto;
      }
      .photo-editor-lightbox-body {
        padding: 12px;
        overflow-x: hidden;
        overflow-y: visible;
      }
      .photo-editor-inner-layout {
        grid-template-columns: 1fr;
        gap: 14px;
      }
      .photo-editor-inner-left {
        position: static;
        top: auto;
      }
      .photo-editor-inner-right {
        min-width: 0;
      }
      .photo-field-row {
        grid-template-columns: minmax(96px, 120px) minmax(0, 1fr);
        align-items: center;
        gap: 6px;
      }
      .photo-field-row > * {
        min-width: 0;
      }
      .photo-editor-lightbox-body .photo-edit-form input,
      .photo-editor-lightbox-body .photo-edit-form select,
      .photo-editor-lightbox-body .photo-edit-form textarea {
        max-width: 100%;
      }
      .photo-editor-lightbox-body .home-focus-toolbar {
        flex-wrap: wrap;
        justify-content: flex-start;
      }
      .photo-editor-lightbox-body .home-focus-preview {
        max-height: clamp(220px, 42vh, 320px);
      }
      .photo-editor-lightbox-body .home-visibility-controls {
        width: 100%;
        flex-wrap: wrap;
      }
      .photo-category-group {
        margin-bottom: 28px;
      }
      .home-focus-toolbar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
      }
      .home-visibility-controls {
        width: auto;
        gap: 10px;
        flex-wrap: nowrap;
      }
      .text-tabs { margin-bottom: 18px; }
    }
    @media (max-width: 640px) {
      .admin-main > h1 {
        margin-bottom: 18px;
      }
      .admin-login-shell {
        margin-top: 0;
      }
      .admin-login-card {
        padding: 20px 16px;
      }
      .sidebar {
        padding: 10px 12px;
      }
      .sidebar a {
        padding: 9px 12px;
        gap: 8px;
      }
      .content {
        padding-top: 14px;
      }
      .review-admin-actions button {
        min-width: 0;
      }
      .admin-form input, .admin-form select, .admin-form button, .admin-form textarea {
        padding: 9px;
      }
      .photo-list {
        margin-top: 16px;
      }
      .photo-editor-lightbox {
        padding: 8px;
      }
      .photo-editor-lightbox-body {
        padding: 10px;
      }
      .photo-editor-lightbox-body .home-focus-preview {
        max-height: clamp(210px, 40vh, 280px);
      }
      .photo-editor-inner-actions {
        gap: 8px;
      }
      .photo-editor-inner-actions button,
      .photo-editor-inner-actions [data-photo-delete-form] button {
        width: 100%;
      }
      .photo-editor-lightbox-header {
        flex-wrap: wrap;
        align-items: flex-start;
      }
      .photo-editor-lightbox-close {
        min-width: 0;
        margin-left: auto !important;
      }
      .home-focus-frame-landscape { width: 100%; }
      .home-focus-frame-portrait { height: 100%; }
    }

    .button-secondary { background: #f0f4fa; color: #6B4F3A; border: 1px solid #c5d0e0; padding: 8px 14px; border-radius: 6px; cursor: pointer; font-size: .9rem; }
    .button-secondary:hover { background: #dce6f5; }
    .admin-help-text { font-size: .875rem; color: #556; margin-bottom: 8px; }
