.patient-photo-mobile-only{display:none!important}

@media(max-width:820px){
  .clinic-patient-module-grid .patient-photo-mobile-only{
    display:flex!important;
  }
  .patient-photo-head{margin-bottom:12px!important}
  .patient-photo-head p{max-width:34rem}
  .patient-photo-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
    margin:0 0 16px;
  }
  .patient-photo-action{
    appearance:none;
    border:1px solid var(--os-border,#d9e1e8);
    background:var(--os-surface,#fff);
    color:var(--os-text,#18324a);
    border-radius:18px;
    min-height:116px;
    padding:14px 12px;
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    justify-content:center;
    gap:5px;
    text-align:left;
    box-shadow:var(--os-shadow-sm,0 8px 22px rgba(25,55,85,.06));
  }
  .patient-photo-action.primary{
    border-color:rgba(47,111,168,.3);
    background:linear-gradient(180deg,rgba(108,166,216,.14),rgba(255,255,255,.9));
  }
  .patient-photo-action>span{font-size:24px;line-height:1}
  .patient-photo-action strong{font-size:14px;color:inherit}
  .patient-photo-action small{font-size:11px;line-height:1.35;color:var(--os-muted,#718096)}
  .patient-photo-section{
    border:1px solid var(--os-border,#d9e1e8);
    background:var(--os-surface,#fff);
    border-radius:20px;
    padding:14px;
  }
  .patient-photo-section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
  .patient-photo-section-head h3{margin:2px 0 0;font-size:16px;color:var(--os-text,#18324a)}
  .patient-photo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .patient-photo-card{
    border:1px solid var(--os-border,#d9e1e8);
    background:var(--os-elevated,#fff);
    border-radius:16px;
    overflow:hidden;
    padding:0;
    min-width:0;
    text-align:left;
    color:inherit;
  }
  .patient-photo-thumb{aspect-ratio:1/1;background:#edf2f7;overflow:hidden}
  .patient-photo-thumb img{display:block;width:100%;height:100%;object-fit:cover}
  .patient-photo-card-meta{padding:9px 10px 10px;display:flex;flex-direction:column;gap:2px;min-width:0}
  .patient-photo-card-meta strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--os-text,#18324a)}
  .patient-photo-card-meta small{font-size:10px;color:var(--os-muted,#718096)}
  .patient-photo-loading,.patient-photo-empty,.patient-photo-error{grid-column:1/-1;min-height:150px;border:1px dashed var(--os-border,#d9e1e8);border-radius:16px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:24px 18px;color:var(--os-muted,#718096);gap:6px}
  .patient-photo-empty>span{font-size:30px}.patient-photo-empty strong,.patient-photo-error strong{color:var(--os-text,#18324a);font-size:14px}.patient-photo-empty small,.patient-photo-error small{font-size:11px;line-height:1.45;max-width:260px}
  .patient-photo-save-modal,.patient-photo-view-modal{display:grid;gap:14px}
  .patient-photo-modal-title{display:flex;gap:10px;align-items:flex-start}.patient-photo-modal-title>span{font-size:24px}.patient-photo-modal-title h2{margin:0;font-size:19px}.patient-photo-modal-title p{margin:4px 0 0;color:var(--os-muted,#718096);font-size:11px;line-height:1.45}
  .patient-photo-preview,.patient-photo-view-image{border-radius:16px;overflow:hidden;background:#edf2f7;max-height:52vh;display:flex;align-items:center;justify-content:center}
  .patient-photo-preview img,.patient-photo-view-image img{display:block;max-width:100%;max-height:52vh;width:auto;height:auto;object-fit:contain}
  .patient-photo-form{display:grid;gap:12px}.patient-photo-form label{display:grid;gap:6px;font-size:12px;font-weight:700;color:var(--os-text,#18324a)}.patient-photo-form label small{font-weight:500;color:var(--os-muted,#718096)}.patient-photo-form input,.patient-photo-form textarea{width:100%;box-sizing:border-box;border:1px solid var(--os-border,#d9e1e8);border-radius:12px;padding:11px 12px;background:var(--os-surface,#fff);color:var(--os-text,#18324a);font:inherit}.patient-photo-form textarea{resize:vertical}
  .patient-photo-view-info{display:flex;justify-content:space-between;gap:10px}.patient-photo-view-info div{display:grid;gap:3px}.patient-photo-view-info span{font-size:11px;color:var(--os-muted,#718096)}.patient-photo-view-info strong{font-size:14px;color:var(--os-text,#18324a)}
  .patient-photo-modal-actions{display:flex!important;justify-content:flex-end!important;gap:8px!important}
}

@media(max-width:420px){
  .patient-photo-actions{grid-template-columns:1fr 1fr}
  .patient-photo-action{min-height:108px;padding:12px 10px}
  .patient-photo-grid{gap:8px}
}
