.account-settings {
  width: min(100%, 76rem);
  margin-inline: auto;
  color: var(--ink-900, #30372f);
}
.account-settings [hidden] { display: none !important; }
.account-settings-card { position: relative; isolation: isolate; overflow: hidden; min-width: 0; padding: clamp(1rem, 2.3vw, 1.5rem); border: 1px solid #e9dcc5; border-radius: 22px; background: #fff9ec; }
.account-settings-card::after { content: ""; position: absolute; z-index: -2; inset: 0; background: url('../images/rp_pozadi.png') center 52% / 107% 176% no-repeat; mask-image: linear-gradient(transparent 32%, #000 53%); pointer-events: none; }
.account-settings-card::before { content: ""; position: absolute; z-index: -1; inset-block-start: var(--space-sm, .75rem); inset-inline-end: 0; width: clamp(3.5rem, 27%, 10rem); aspect-ratio: 8 / 3; background: url('../images/overview/bnk/listky_vodorovne.png') left center / 112% auto no-repeat; filter: saturate(.62); opacity: .52; pointer-events: none; }
.account-settings-card > h2, .account-crop-card h2 { margin: 0 0 1rem; color: var(--sage-800, #365d2f); font-size: clamp(1.05rem, 1.7vw, 1.3rem); }
.account-settings-main-grid { display: grid; grid-template-columns: minmax(12rem, .75fr) minmax(0, 1.5fr); align-items: start; gap: clamp(1rem, 3vw, 2rem); }
.account-settings-photo-card { display: grid; justify-items: center; align-content: start; min-width: 0; }
.account-settings-photo-card h3 { justify-self: stretch; margin: 0 0 .85rem; color: var(--sage-800, #365d2f); font-size: clamp(1rem, 1.5vw, 1.15rem); }
.account-photo-preview { display: grid; place-items: center; width: clamp(8rem, 15vw, 11rem); aspect-ratio: 1; margin: 0 auto .7rem; overflow: hidden; border: 3px solid #fff; border-radius: clamp(16px, 2vw, 22px); background: #e8eee3; box-shadow: 0 5px 18px rgb(48 53 45 / 12%); color: #718f43; font-size: clamp(2.7rem, 5vw, 4rem); font-weight: 750; }
.account-photo-preview img, .account-photo-preview canvas { display: block; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.account-photo-preview [hidden] { display: none; }
.account-settings-muted { margin: .5rem 0 1rem; color: #656c62; font-size: .9rem; line-height: 1.45; text-align: center; }
.account-settings-file-button { position: relative; display: grid; place-items: center; width: min(100%, 24rem); min-height: 46px; overflow: hidden; border: 1px solid #b4c6a7; border-radius: 12px; color: #365d2f; background: #edf2e9; font: inherit; font-weight: 700; text-align: center; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.account-settings-file-button input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.account-settings-remove-photo { display: block; min-height: 40px; margin: .45rem auto 0; border: 0; padding: .35rem; color: #6f786b; background: transparent; font: inherit; font-size: .86rem; text-decoration: underline; text-underline-offset: .18em; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.account-settings-form { display: grid; gap: clamp(.85rem, 1.8vw, 1.15rem); }
.account-settings-fields { display: grid; align-content: start; gap: .85rem; min-width: 0; }
.account-settings-field { display: grid; gap: .35rem; min-width: 0; color: #485b43; font-size: .91rem; font-weight: 650; }
.account-settings-field input, .account-settings-field select { box-sizing: border-box; display: block; width: 100%; min-width: 0; max-width: 100%; min-height: 46px; border: 1px solid #d7cbb6; border-radius: 12px; padding: .65rem .8rem; color: #30372f; background: #fffdf8; font: inherit; font-size: max(16px, .91rem); font-weight: 500; }
.account-settings-date-field { position: relative; }
.account-settings-field input[type="date"] { min-inline-size: 0; padding-inline: .8rem; -webkit-appearance: none; appearance: none; }
.account-settings-field input[type="date"]::-webkit-date-and-time-value { display: block; width: 100%; min-width: 0; text-align: start; }
.account-settings-field input[type="date"]::-webkit-datetime-edit { min-width: 0; padding: 0; }
.account-settings-date-placeholder { position: absolute; inset-inline-start: .85rem; inset-block-start: 50%; color: #73786f; font-size: max(16px, .91rem); font-weight: 500; line-height: 1; pointer-events: none; transform: translateY(-50%); }
.account-settings-date-field:focus-within .account-settings-date-placeholder,
.account-settings-date-field.has-value .account-settings-date-placeholder { display: none; }
.account-settings-field :is(input, select):disabled { color: #73786f; background: #ecece6; }
.account-settings-family-name { margin: -.3rem 0 0; color: #697363; font-size: .85rem; line-height: 1.4; }
.account-settings-relations .family-flow-relation { -webkit-tap-highlight-color: transparent; }
.account-settings-relations .family-flow-relation:has(input:focus-visible) { outline: none; box-shadow: none; }
.account-settings-relations .family-flow-relation input:focus-visible { outline: none; box-shadow: none; }
.account-settings-submit, .account-crop-cancel { min-height: 46px; border: 0; border-radius: 12px; padding: .7rem 1rem; font: inherit; font-weight: 750; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.account-settings-submit { color: #fffdf8; background: var(--sage-700, #557b48); box-shadow: 0 3px 9px rgb(61 83 49 / 14%); }
.account-settings-submit:disabled { opacity: .65; cursor: wait; }
.account-crop-dialog { width: min(92vw, 28rem); max-width: none; max-height: min(92dvh, 48rem); overflow: auto; border: 1px solid #e9dcc5; border-radius: 20px; padding: 0; color: #30372f; background: #fff9ec; box-shadow: 0 20px 65px rgb(35 47 30 / 25%); }
.account-crop-dialog::backdrop { background: rgb(39 49 34 / 48%); backdrop-filter: blur(3px); }
.account-crop-card { display: grid; gap: .75rem; padding: clamp(1rem, 4vw, 1.5rem); }
.account-crop-card h2 { margin: 0; }
.account-crop-card .account-settings-muted { margin: 0; text-align: left; }
.account-crop-frame { display: grid; place-items: center; padding: .5rem; }
.account-crop-stage { position: relative; width: min(100%, 20rem); aspect-ratio: 1; overflow: hidden; border: 4px solid #fff; border-radius: 18px; background: #f5e4c6; box-shadow: 0 4px 16px rgb(48 53 45 / 12%); }
.account-crop-stage canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.account-crop-mask { position: absolute; inset: 0; display: block; width: 100%; height: 100%; pointer-events: none; }
.account-crop-zoom { gap: .2rem; }
.account-crop-zoom input { width: 100%; min-width: 0; margin: .3rem 0; accent-color: #557b48; direction: ltr; }
.account-crop-zoom-labels { display: flex; justify-content: space-between; color: #656c62; font-size: .82rem; font-weight: 550; }
.account-crop-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: .65rem; }
.account-crop-cancel { color: #365d2f; background: #edf2e9; }
.profile-photo.has-account-photo { background-position: center; background-size: cover; background-repeat: no-repeat; }
@media (max-width: 767px) {
  .account-settings-main-grid { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .account-settings-photo-card { justify-items: center; }
  .account-settings-photo-card h3 { text-align: center; }
  .account-settings-fields { gap: .75rem; }
}
@media (max-width: 430px) {
  .account-settings-date-placeholder { inset-inline-start: .85rem; }
}
@media (max-width: 359px) {
  .account-crop-actions { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .account-settings *, .account-crop-dialog * { scroll-behavior: auto !important; }
}
