.photo-crop-dialog { width:min(780px,calc(100% - 24px)); max-height:90vh; padding:0; overflow:auto; }
.photo-crop-head { display:grid; grid-template-columns:46px minmax(0,1fr) 46px; align-items:center; gap:14px; padding:20px 24px; border-bottom:1px solid #5c5c5c; }
.photo-crop-title { min-width:0; text-align:center; }
.photo-crop-round { display:flex; align-items:center; justify-content:center; width:46px; height:46px; min-width:46px; min-height:46px; padding:0; border-radius:50%; line-height:1; }
.photo-crop-confirm { background:#e4e4e4; color:#242424; border:1px solid #e4e4e4; }
.photo-crop-confirm svg { display:block; width:23px; height:23px; flex:none; }
.photo-crop-dismiss { background:#414141; color:#ededed; border:1px solid #6f6f6f; }
.photo-crop-dismiss .ss-icon { display:block; width:21px; height:21px; flex:none; vertical-align:baseline; }
.photo-crop-head h2 { margin:7px 0 0; font-size:1.5rem; }
.photo-crop-layout { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr); gap:24px; padding:24px; }
.photo-crop-image { min-width:0; }
#photo-crop-canvas { display:block; width:100%; max-width:340px; aspect-ratio:1; border-radius:22px; touch-action:none; background:#464646; margin:auto; }
.photo-crop-image p { text-align:center; margin:10px 0 0; }
.photo-crop-options { display:flex; flex-direction:column; min-width:0; gap:10px; }
#photo-crop-preview { display:block; width:112px; height:112px; border-radius:50%; align-self:center; margin:8px 0; background:#464646; }
.photo-crop-options p { text-align:center; font-size:.86rem; margin:0 0 12px; }
.photo-crop-options label { display:flex; justify-content:space-between; margin:0; }
#photo-crop-zoom { accent-color:#e4e4e4; padding:0; background:transparent; border:0; min-height:36px; }
.photo-crop-options .secondary { margin-top:10px; }
.photo-crop-dialog .error:not(:empty) { padding:0 24px 15px; }
.profile-hero { display:flex; align-items:center; gap:18px; min-width:0; }
.profile-hero-copy { min-width:0; }
.profile-hero-name { overflow-wrap:anywhere; line-height:1.06; }
.profile-hero-photo { position:relative; flex:none; }
.profile-avatar { display:block; box-sizing:border-box; flex:none; width:78px; min-width:78px; max-width:78px; height:78px; min-height:78px; max-height:78px; aspect-ratio:1 / 1; overflow:hidden; border-radius:50%; object-fit:cover; object-position:center; border:3px solid #e4e4e4; box-shadow:0 0 0 5px #e4e4e420; }
.profile-avatar-empty { display:grid; place-items:center; font-size:42px; color:#e4e4e4; }
.profile-edit-photo { position:absolute; right:-7px; bottom:-5px; width:34px; height:34px; border:1px solid #bebebe; border-radius:50%; padding:0; background:#e4e4e4; color:#272727; font-size:22px; line-height:1; display:grid; place-items:center; }
.nav-icon .profile-avatar.nav-avatar { width:27px; min-width:27px; max-width:27px; height:27px; min-height:27px; max-height:27px; border-width:2px; box-shadow:none; }
img#profile-photo-preview { display:block; box-sizing:border-box; width:72px; min-width:72px; max-width:72px; height:72px; min-height:72px; max-height:72px; aspect-ratio:1 / 1; border-radius:50%; object-fit:cover; object-position:center; }
.sidebar .nav-icon { width:27px; }
.row-actions { display:flex; align-items:center; justify-content:flex-end; gap:10px; flex-wrap:wrap; min-width:0; }
.edit-button { min-height:34px; padding:6px 11px; font-size:.82rem; white-space:nowrap; }
.delete-button { min-height:34px; padding:6px 11px; border:1px solid #80564d; border-radius:13px; background:#49302b; color:#ffd2c7; font-size:.82rem; white-space:nowrap; }
.record-row > div:first-child { min-width:0; overflow-wrap:anywhere; }
.event-open { display:block; width:100%; min-width:0; padding:4px 0; border:0; background:transparent; color:inherit; text-align:left; overflow-wrap:anywhere; }
.event-open:hover b { color:#e4e4e4; }
.event-open small { display:block; }
.event-row { min-width:0; }
.event-day-list { padding:8px 0; }
.event-day-list .row { margin:0 0 10px; }
@media(max-width:700px) {
  .photo-crop-dialog { width:calc(100% - 18px); }
  .photo-crop-head { gap:8px; padding:16px; }
  .photo-crop-layout { grid-template-columns:1fr; gap:12px; padding:15px; }
  #photo-crop-canvas { max-width:min(100%,300px); }
  .photo-crop-options { display:grid; grid-template-columns:80px minmax(0,1fr); align-items:center; gap:7px 12px; }
  .photo-crop-options .kicker { display:none; }
  #photo-crop-preview { width:76px; height:76px; grid-row:span 2; margin:0; }
  .photo-crop-options p { text-align:left; margin:0; }
  .photo-crop-options label, .photo-crop-options input, .photo-crop-options button { grid-column:1/-1; }
  .photo-crop-options .secondary { margin-top:0; }
  .profile-hero { gap:13px; }
  .profile-avatar.hero-avatar { width:68px; min-width:68px; max-width:68px; height:68px; min-height:68px; max-height:68px; }
  .profile-edit-photo { width:31px; height:31px; }
  .mobile-nav .nav-icon { width:27px; height:28px; display:grid; place-items:center; }
  .row-actions { flex:0 0 auto; max-width:52%; }
  .row-actions .money { white-space:normal; text-align:right; }
}
