:root {
    --brand-primary: #24493d;
    --brand-secondary: #bd8c52;
    --ink: #1f2925;
    --muted: #68736d;
    --green: var(--brand-primary);
    --green-2: color-mix(in srgb, var(--brand-primary) 84%, white);
    --sage: color-mix(in srgb, var(--brand-primary) 14%, white);
    --cream: #f7f4ed;
    --paper: #fffdf8;
    --line: #e6e2d9;
    --gold: var(--brand-secondary);
    --shadow: 0 18px 50px rgba(31, 41, 37, .08);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { font-family: "DM Sans", sans-serif; color: var(--ink); background: var(--cream); }
body { margin: 0; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.brand-link { display: inline-flex; align-items: center; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--green); color: white; font-family: "Playfair Display", serif; font-style: italic; }
.brand-light .brand-mark { background: white; color: var(--green); }
.brand-logo { display: block; width: 38px; height: 38px; object-fit: contain; }
.brand-logo-horizontal { width: min(170px, 100%); height: 46px; object-position: left center; }
.eyebrow { margin: 0 0 14px; color: #c9d5cd; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow.ink { color: var(--gold); }

.login-shell { display: grid; grid-template-columns: minmax(420px, 46%) 1fr; min-height: 100vh; }
.login-story { position: relative; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 48px 56px; color: white; background: linear-gradient(145deg, color-mix(in srgb, var(--green) 94%, black), color-mix(in srgb, var(--green) 88%, white)), var(--green); }
.login-story::before, .login-story::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; }
.login-story::before { width: 560px; height: 560px; right: -360px; top: -120px; }
.login-story::after { width: 420px; height: 420px; left: -260px; bottom: -120px; }
.story-copy { position: relative; z-index: 1; max-width: 550px; }
.story-copy h1 { margin: 0 0 28px; font: 700 clamp(46px, 5vw, 78px)/1.02 "Playfair Display", serif; letter-spacing: -.04em; }
.story-copy h1 em { color: #d5bea2; font-weight: 700; }
.story-copy > p:last-child { max-width: 440px; margin: 0; color: #d6dfda; font-size: 17px; line-height: 1.7; }
.story-footer { display: flex; align-items: center; gap: 10px; color: #cbd8d1; font-size: 13px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #a9d5b8; box-shadow: 0 0 0 5px rgba(169,213,184,.12); }
.login-panel { display: grid; place-items: center; padding: 42px; background: var(--paper); }
.login-form-wrap { width: min(100%, 440px); }
.mobile-brand { display: none; align-items: center; gap: 10px; font-weight: 700; }
.login-form-wrap h2 { margin: 0; font: 700 48px/1.1 "Playfair Display", serif; letter-spacing: -.03em; }
.form-intro { margin: 14px 0 34px; color: var(--muted); line-height: 1.55; }
.login-form { display: grid; gap: 11px; }
.login-form label { font-size: 13px; font-weight: 700; }
.label-row { display: flex; justify-content: space-between; align-items: center; margin-top: 7px; }
.label-row span { color: var(--muted); font-size: 11px; }
.login-form input { width: 100%; height: 54px; border: 1px solid var(--line); border-radius: 9px; padding: 0 15px; background: white; outline: none; transition: border-color .2s, box-shadow .2s; }
.login-form input:focus { border-color: var(--green-2); box-shadow: 0 0 0 4px rgba(49,95,80,.1); }
.password-field { position: relative; }
.password-field input { padding-right: 85px; }
.toggle-password { position: absolute; top: 0; right: 8px; height: 54px; border: 0; color: var(--green); background: transparent; font-size: 12px; font-weight: 700; cursor: pointer; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 48px; border: 0; border-radius: 8px; padding: 0 19px; font-weight: 700; cursor: pointer; }
.button-primary { color: white; background: var(--green); box-shadow: 0 9px 20px rgba(36,73,61,.16); }
.button-primary:hover { background: var(--green-2); }
.button-full { width: 100%; height: 56px; margin-top: 15px; }
.alert { margin: 0 0 22px; border: 1px solid #e4c7c0; border-radius: 8px; padding: 12px 14px; color: #8b3e2f; background: #fff1ed; font-size: 13px; }
.demo-note { display: flex; flex-direction: column; gap: 4px; margin-top: 26px; border-top: 1px solid var(--line); padding-top: 20px; color: var(--muted); font-size: 12px; }
.demo-note strong { color: var(--ink); }

.app-shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; display: flex; flex-direction: column; height: 100vh; border-right: 1px solid var(--line); padding: 30px 22px 20px; background: var(--paper); }
.sidebar > .brand-link { min-height: 66px; padding: 0 10px 28px; }
.main-nav { display: flex; flex-direction: column; gap: 5px; }
.main-nav p { margin: 21px 12px 7px; color: #98a09b; font-size: 10px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.main-nav a { display: flex; align-items: center; gap: 13px; border-radius: 8px; padding: 11px 13px; color: var(--muted); font-size: 13px; font-weight: 600; }
.main-nav a span { width: 19px; color: #849189; font-size: 17px; text-align: center; }
.main-nav a:hover, .main-nav a.active { color: var(--green); background: var(--sage); }
.sidebar-profile { display: grid; grid-template-columns: 38px 1fr auto; gap: 10px; align-items: center; margin-top: auto; border-top: 1px solid var(--line); padding: 20px 2px 0; }
.avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: white; background: var(--green); font-size: 12px; font-weight: 700; }
.sidebar-profile strong, .sidebar-profile span { display: block; }
.sidebar-profile strong { font-size: 12px; }
.sidebar-profile span { margin-top: 2px; color: var(--muted); font-size: 10px; }
.sidebar-profile form { margin: 0; }
.icon-button { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: white; cursor: pointer; }
.dashboard-main { min-width: 0; }
.topbar { display: flex; justify-content: flex-end; align-items: center; height: 78px; border-bottom: 1px solid var(--line); padding: 0 38px; background: rgba(255,253,248,.88); backdrop-filter: blur(10px); }
.top-actions { display: flex; align-items: center; gap: 12px; }
.mobile-logout { display: none; margin: 0; }
.mobile-menu { display: none; position: relative; }
.mobile-menu summary { list-style: none; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu-panel { position: absolute; z-index: 80; top: 50px; right: 0; display: grid; gap: 18px; width: min(352px, calc(100vw - 24px)); max-height: calc(100vh - 94px); overflow-y: auto; border: 1px solid var(--line); border-radius: 14px; padding: 18px; color: var(--ink); background: var(--paper); box-shadow: 0 24px 60px rgba(31,41,37,.2); }
.mobile-nav-section { display: grid; gap: 9px; }
.mobile-nav-section h2 { margin: 0; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.mobile-nav-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mobile-nav-grid a { display: flex; gap: 8px; align-items: center; min-height: 50px; border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; color: var(--ink); background: white; font-size: 11px; }
.mobile-nav-grid a span { display: grid; flex: 0 0 26px; place-items: center; width: 26px; height: 26px; border-radius: 7px; color: var(--green); background: var(--sage); font-size: 13px; }
.mobile-nav-grid a strong { line-height: 1.15; }
.mobile-nav-grid a:hover, .mobile-nav-grid a.active { border-color: color-mix(in srgb, var(--green) 42%, var(--line)); background: var(--sage); }
.mobile-user-card { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 10px; align-items: center; border-top: 1px solid var(--line); padding-top: 17px; }
.mobile-user-copy strong, .mobile-user-copy span { display: block; }
.mobile-user-copy strong { font-size: 12px; }
.mobile-user-copy span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.mobile-user-actions { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mobile-user-actions form { margin: 0; }
.mobile-profile-button, .mobile-exit-button { display: grid; place-items: center; width: 100%; min-height: 40px; border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; font-size: 11px; font-weight: 700; cursor: pointer; }
.mobile-profile-button { color: var(--ink); background: white; }
.mobile-exit-button { border-color: var(--green); color: white; background: var(--green); }
.navbar-primary .mobile-menu-panel { color: var(--ink); background: var(--paper); }
.navbar-primary .mobile-menu-panel .avatar { color: white; background: var(--green); }
.notification { position: relative; }
.notification span { position: absolute; top: 7px; right: 7px; width: 6px; height: 6px; border: 1px solid white; border-radius: 50%; background: #c87857; }
.dashboard-content { max-width: 1440px; margin: auto; padding: 40px; }
.welcome { display: flex; justify-content: space-between; align-items: end; margin-bottom: 29px; }
.welcome h1 { margin: 0; font: 700 clamp(35px, 4vw, 48px)/1.08 "Playfair Display", serif; letter-spacing: -.03em; }
.welcome h1 em { color: var(--green-2); }
.welcome > div > p:last-child { margin: 10px 0 0; color: var(--muted); }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin-bottom: 20px; }
.client-metrics { grid-template-columns: repeat(2, minmax(0, 330px)); }
.metric-card { position: relative; min-height: 124px; border: 1px solid var(--line); border-radius: 12px; padding: 18px; background: var(--paper); box-shadow: 0 7px 25px rgba(31,41,37,.035); }
.metric-card.featured { color: white; border-color: var(--green); background: var(--green); }
.metric-icon { position: absolute; top: 18px; right: 18px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; color: var(--green); background: var(--sage); font-weight: 700; }
.featured .metric-icon { color: white; background: rgba(255,255,255,.12); }
.metric-label { display: block; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.featured .metric-label { color: #cbd9d3; }
.metric-card strong { display: block; margin-top: 16px; font: 700 36px/.98 "Playfair Display", serif; }
.metric-card small { display: block; margin-top: 7px; color: var(--muted); font-size: 11px; }
.featured small { color: #b8cbc3; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, .72fr); gap: 20px; }
.panel { border: 1px solid var(--line); border-radius: 12px; background: var(--paper); box-shadow: 0 7px 25px rgba(31,41,37,.035); }
.panel-header { display: flex; justify-content: space-between; align-items: center; min-height: 88px; border-bottom: 1px solid var(--line); padding: 19px 23px; }
.panel-header .eyebrow { margin-bottom: 5px; font-size: 9px; }
.panel-header h2 { margin: 0; font: 700 22px/1.2 "Playfair Display", serif; }
.panel-header > a { color: var(--green); font-size: 12px; font-weight: 700; }
.appointment-row { display: grid; grid-template-columns: 52px 72px minmax(140px, 1fr) auto 58px 28px; gap: 14px; align-items: center; min-height: 84px; border-bottom: 1px solid #eeeae2; padding: 13px 20px; }
.appointment-row:last-child { border-bottom: 0; }
.date-tile { display: grid; place-items: center; align-content: center; width: 48px; height: 52px; border-radius: 8px; color: var(--green); background: var(--sage); }
.date-tile span { font-size: 8px; font-weight: 700; letter-spacing: .1em; }
.date-tile strong { font: 700 21px/1.1 "Playfair Display", serif; }
.appointment-time strong, .appointment-time span, .appointment-person strong, .appointment-person span { display: block; }
.appointment-time strong { font-size: 13px; }
.appointment-time span { margin-top: 4px; color: var(--muted); font-size: 10px; }
.appointment-person strong, .appointment-person span { display: block; }
.appointment-person strong { font-size: 14px; }
.appointment-person span { margin-top: 5px; color: var(--green); font-size: 11px; font-weight: 700; }
.status { border-radius: 99px; padding: 5px 9px; font-size: 9px; font-weight: 700; }
.status-confirmed { color: #377057; background: #e2f0e7; }
.status-pending { color: #9a6735; background: #faebd7; }
.status-completed { color: #3f6373; background: #e1edf2; }
.status-cancelled, .status-no_show { color: #8b4d48; background: #f5e4e1; }
.price { font-size: 12px; text-align: right; }
.more-button { border: 0; color: #98a09b; background: transparent; cursor: pointer; }
.empty-state { padding: 40px 22px; color: var(--muted); text-align: center; }
.quick-panel { padding-bottom: 14px; }
.quick-panel .panel-header { border-bottom: 0; }
.quick-action { display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; align-items: center; width: calc(100% - 28px); margin: 0 14px 9px; border: 1px solid var(--line); border-radius: 9px; padding: 13px; color: inherit; background: transparent; text-align: left; cursor: pointer; transition: transform .2s, border-color .2s; }
.quick-action:hover { border-color: #acbdb5; transform: translateY(-1px); }
.quick-action.primary { color: white; border-color: var(--green); background: var(--green); }
.quick-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; color: var(--green); background: var(--sage); font-size: 18px; }
.primary .quick-icon { color: white; background: rgba(255,255,255,.12); }
.quick-action strong, .quick-action small { display: block; }
.quick-action strong { font-size: 11px; }
.quick-action small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.quick-action.primary small { color: #bed0c8; }
.quick-action b { font-size: 16px; }

/* Layout di pagina e feedback */
.page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; margin-bottom: 28px; }
.page-heading h1 { margin: 0; font: 700 clamp(35px, 4vw, 48px)/1.08 "Playfair Display", serif; letter-spacing: -.03em; }
.page-heading h1 em { color: var(--green-2); }
.page-heading > div > p:last-child { margin: 10px 0 0; color: var(--muted); }
.button-secondary { border: 1px solid var(--line); color: var(--ink); background: var(--paper); box-shadow: none; }
.button-danger { border: 1px solid #e7c6c1; color: #9a453d; background: #fff4f1; box-shadow: none; }
.profile-panel { display: grid; grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr); gap: 24px; padding: 25px; }
.profile-identity { display: flex; gap: 14px; align-items: center; }
.profile-avatar { width: 52px; height: 52px; font-size: 15px; }
.profile-identity strong, .profile-identity span { display: block; }
.profile-identity strong { font: 700 21px/1.15 "Playfair Display", serif; }
.profile-identity span { margin-top: 5px; color: var(--muted); font-size: 11px; }
.profile-data { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; }
.profile-data div { border: 1px solid var(--line); border-radius: 9px; padding: 13px; background: white; }
.profile-data dt { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.profile-data dd { overflow-wrap: anywhere; margin: 7px 0 0; font-size: 11px; font-weight: 700; }
.flash { display: flex; gap: 11px; align-items: center; margin-bottom: 22px; border: 1px solid; border-radius: 9px; padding: 13px 16px; font-size: 13px; font-weight: 600; }
.flash > span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: white; }
.flash-success { border-color: #bdd8c7; color: #326049; background: #edf7f0; }
.flash-success > span { background: #4c8565; }
.flash-error { border-color: #e4c7c0; color: #8b3e2f; background: #fff1ed; }
.flash-error > span { background: #b65d4d; }
.flash-warning { border-color: #e4c993; color: #795926; background: #fff8e8; }
.flash-warning > span { background: #c79542; }

/* Superfici personalizzabili */
.navbar-primary .topbar { border-color: color-mix(in srgb, var(--green) 78%, black); color: white; background: var(--green); }
.navbar-primary .topbar .icon-button { border-color: rgba(255,255,255,.24); color: white; background: rgba(255,255,255,.1); }
.navbar-primary .topbar .button-primary { color: var(--green); background: white; box-shadow: none; }
.navbar-primary .topbar .brand-mark { color: var(--green); background: white; }
.navbar-primary .topbar .brand-name { color: white; }
.sidebar-primary .sidebar { color: white; border-color: color-mix(in srgb, var(--green) 78%, black); background: var(--green); }
.sidebar-primary .sidebar .brand-mark { color: var(--green); background: white; }
.sidebar-primary .sidebar .main-nav p { color: rgba(255,255,255,.48); }
.sidebar-primary .sidebar .main-nav a, .sidebar-primary .sidebar .main-nav a span { color: rgba(255,255,255,.72); }
.sidebar-primary .sidebar .main-nav a:hover, .sidebar-primary .sidebar .main-nav a.active { color: white; background: rgba(255,255,255,.13); }
.sidebar-primary .sidebar .sidebar-profile { border-color: rgba(255,255,255,.2); }
.sidebar-primary .sidebar .sidebar-profile span { color: rgba(255,255,255,.62); }
.sidebar-primary .sidebar .avatar { color: var(--green); background: white; }
.sidebar-primary .sidebar .icon-button { border-color: rgba(255,255,255,.24); color: white; background: rgba(255,255,255,.1); }

/* Modali e form */
.modal { width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 32px); border: 0; border-radius: 14px; padding: 0; color: var(--ink); background: transparent; box-shadow: var(--shadow); }
.modal::backdrop { background: rgba(19, 31, 27, .55); backdrop-filter: blur(3px); }
.modal-card { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.modal-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); padding: 22px 25px; }
.modal-header .eyebrow { margin-bottom: 5px; font-size: 9px; }
.modal-header h2 { margin: 0; font: 700 27px/1.1 "Playfair Display", serif; }
.modal-close { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: white; font-size: 22px; cursor: pointer; }
.modal-body { display: grid; gap: 20px; padding: 24px 25px; }
.modal-body > label, .form-grid label, .settings-body > label, .color-settings > label, .client-personal-data > label { display: grid; gap: 8px; color: var(--ink); font-size: 12px; font-weight: 700; }
.form-grid { display: grid; gap: 16px; }
.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid input, .form-grid select, .modal-body textarea, .settings-body input:not([type="color"]), .client-personal-data input, .client-personal-data textarea { width: 100%; min-height: 47px; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; color: var(--ink); background: white; outline: none; }
.modal-body textarea, .client-personal-data textarea { resize: vertical; }
.form-grid input:focus, .form-grid select:focus, .modal-body textarea:focus, .settings-body input:focus, .client-personal-data input:focus, .client-personal-data textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 12%, transparent); }
.service-picker { margin: 0; border: 0; padding: 0; }
.service-picker legend { margin-bottom: 9px; font-size: 12px; font-weight: 700; }
.service-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.service-option { position: relative; display: block; cursor: pointer; }
.service-option input { position: absolute; opacity: 0; }
.service-option span { display: block; border: 1px solid var(--line); border-radius: 8px; padding: 11px 13px; background: white; }
.service-option strong, .service-option small { display: block; }
.service-option strong { font-size: 11px; }
.service-option small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.service-option input:checked + span { border-color: var(--green); background: var(--sage); box-shadow: inset 3px 0 var(--green); }
.booking-summary { display: flex; justify-content: flex-end; gap: 22px; margin-top: 12px; color: var(--muted); font-size: 11px; }
.booking-summary strong { margin-left: 4px; color: var(--ink); }
.modal-footer { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding: 16px 25px; background: #faf8f2; }
.modal-footer .button { min-height: 42px; font-size: 12px; }
.modal-spacer { flex: 1; }
.booking-delete[hidden] { display: none; }

/* Calendario */
.calendar-heading { align-items: center; }
.week-controls { display: flex; align-items: center; gap: 8px; }
.week-controls .button { min-height: 38px; }
.calendar-panel { overflow: hidden; }
.calendar-scroll { overflow-x: auto; }
.calendar-week { display: grid; grid-template-columns: 62px repeat(7, minmax(145px, 1fr)); min-width: 1080px; }
.calendar-corner, .calendar-day-head { height: 74px; border-bottom: 1px solid var(--line); background: #fbf9f4; }
.calendar-corner { border-right: 1px solid var(--line); }
.calendar-day-head { display: flex; align-items: center; justify-content: center; gap: 9px; border-right: 1px solid var(--line); }
.calendar-day-head span { color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.calendar-day-head strong { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font: 700 18px "Playfair Display", serif; }
.calendar-day-head.is-today strong { color: white; background: var(--green); }
.calendar-times { position: relative; height: 720px; border-right: 1px solid var(--line); background: #fbf9f4; }
.calendar-times span { position: absolute; right: 10px; color: #929c96; font-size: 9px; transform: translateY(-50%); }
.calendar-day-column { position: relative; height: 720px; border-right: 1px solid var(--line); background: repeating-linear-gradient(to bottom, transparent 0, transparent 59px, #ece8df 60px); }
.calendar-event { position: absolute; z-index: 2; top: var(--event-top); left: 5px; width: calc(100% - 10px); height: max(30px, var(--event-height)); overflow: hidden; border: 0; border-left: 3px solid; border-radius: 7px; padding: 7px 8px; color: #274d3f; background: #e1eee6; text-align: left; cursor: pointer; }
.calendar-event strong, .calendar-event span { display: block; }
.calendar-event strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.calendar-event span { margin-top: 3px; overflow: hidden; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.calendar-event.event-pending { border-color: #c68d4e; color: #805b31; background: #faecd9; }
.calendar-event.event-completed { border-color: #568198; color: #3e6577; background: #e3eef2; }
.calendar-event.event-cancelled, .calendar-event.event-no_show { border-color: #b66a61; color: #854e48; background: #f5e6e3; opacity: .7; }
.calendar-legend { display: flex; flex-wrap: wrap; gap: 20px; border-top: 1px solid var(--line); padding: 14px 20px; color: var(--muted); font-size: 10px; }
.calendar-legend span { display: flex; align-items: center; gap: 6px; }
.calendar-legend i { width: 9px; height: 9px; border-radius: 3px; background: #7aa58f; }
.calendar-legend .legend-pending { background: #c68d4e; }
.calendar-legend .legend-completed { background: #568198; }
.calendar-legend .legend-cancelled { background: #b66a61; }

/* Rubrica clienti */
.directory-panel { overflow: hidden; }
.directory-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); padding: 18px 22px; }
.search-field { display: flex; align-items: center; gap: 9px; width: min(440px, 100%); border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; background: white; }
.search-field span { color: var(--muted); }
.search-field input { width: 100%; height: 42px; border: 0; outline: 0; background: transparent; }
.directory-count { color: var(--muted); font-size: 12px; }
.directory-count strong { color: var(--ink); }
.client-table-head, .client-row { display: grid; grid-template-columns: 1.25fr 1.35fr 1fr .55fr .65fr 24px; gap: 15px; align-items: center; }
.client-table-head { padding: 13px 22px; color: #909994; background: #faf8f3; font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.client-row { width: 100%; min-height: 78px; border: 0; border-top: 1px solid #efebe3; padding: 13px 22px; color: var(--muted); background: transparent; text-align: left; cursor: pointer; }
.client-row:hover { background: var(--sage); }
.client-identity { display: flex; align-items: center; gap: 11px; }
.client-identity > i { display: grid; place-items: center; flex: 0 0 auto; width: 39px; height: 39px; border-radius: 50%; color: white; background: var(--green); font-style: normal; font-size: 10px; font-weight: 700; }
.client-identity strong, .client-identity small, .client-contact strong, .client-contact small { display: block; }
.client-identity strong, .client-contact strong { overflow: hidden; color: var(--ink); font-size: 11px; text-overflow: ellipsis; }
.client-identity small, .client-contact small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.row-arrow { color: var(--green); font-size: 17px; }
.client-modal { width: min(1050px, calc(100vw - 32px)); }
.client-modal-layout { display: grid; grid-template-columns: .95fr 1.05fr; max-height: 66vh; overflow: auto; }
.client-personal-data { align-content: start; border-right: 1px solid var(--line); }
.client-personal-data h3, .client-insights h3 { margin: 0 0 15px; font: 700 18px "Playfair Display", serif; }
.client-personal-data > label { margin-top: 18px; }
.client-personal-data label small { color: var(--muted); font-size: 9px; font-weight: 400; }
.client-insights { padding: 24px 25px; background: #faf8f3; }
.client-stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin-bottom: 25px; }
.client-stat-grid article { min-height: 83px; border: 1px solid var(--line); border-radius: 8px; padding: 13px; background: white; }
.client-stat-grid span, .client-stat-grid strong { display: block; }
.client-stat-grid span { color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.client-stat-grid strong { margin-top: 10px; font: 700 18px "Playfair Display", serif; }
.client-history { display: grid; gap: 7px; }
.client-history article { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding: 9px 0; }
.client-history strong, .client-history small { display: block; }
.client-history strong { font-size: 10px; }
.client-history small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.client-history b { font-size: 10px; }

/* Gestione servizi */
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.service-card { display: flex; flex-direction: column; min-height: 320px; padding: 21px; }
.service-card.is-inactive { opacity: .68; }
.service-card-top { display: flex; justify-content: space-between; align-items: center; }
.service-symbol { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 9px; color: var(--green); background: var(--sage); font-size: 18px; }
.service-card h2 { margin: 22px 0 8px; font: 700 24px/1.15 "Playfair Display", serif; }
.service-card > p { min-height: 43px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.service-price { display: flex; justify-content: space-between; align-items: baseline; margin: 19px 0; }
.service-price strong { font: 700 27px "Playfair Display", serif; }
.service-price span { color: var(--muted); font-size: 11px; font-weight: 700; }
.service-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; border-top: 1px solid var(--line); padding-top: 14px; }
.service-stats span, .service-stats strong { display: block; }
.service-stats span { color: var(--muted); font-size: 8px; }
.service-stats strong { margin-bottom: 3px; color: var(--ink); font-size: 11px; }
.service-edit { width: 100%; margin-top: auto; }
.service-active-toggle { font-weight: 400; }
.propagation-option { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; border: 1px solid #e2c98f; border-radius: 9px; padding: 13px; color: #684f27; background: #fff9e9; cursor: pointer; }
.propagation-option input { margin-top: 2px; accent-color: var(--green); }
.propagation-option strong, .propagation-option small { display: block; }
.propagation-option strong { font-size: 10px; }
.propagation-option small { margin-top: 5px; color: #856d42; font-size: 9px; line-height: 1.45; }

/* Impostazioni */
.settings-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .75fr); gap: 20px; align-items: start; }
.settings-column { display: grid; gap: 20px; }
.settings-body { display: grid; gap: 22px; padding: 23px; }
.settings-body small { color: var(--muted); font-size: 9px; font-weight: 400; }
.color-settings { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.color-input { display: flex; align-items: center; gap: 10px; height: 49px; border: 1px solid var(--line); border-radius: 8px; padding: 6px; background: white; }
.color-input input { width: 48px; height: 35px; border: 0; border-radius: 6px; padding: 0; background: none; cursor: pointer; }
.color-input code { color: var(--muted); font-family: inherit; font-size: 11px; }
.surface-settings { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.surface-toggle { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 9px; padding: 13px; background: white; cursor: pointer; }
.surface-toggle input { position: absolute; opacity: 0; }
.surface-toggle strong, .surface-toggle small { display: block; }
.surface-toggle strong { font-size: 10px; }
.surface-toggle small { margin-top: 4px; }
.surface-toggle i { position: relative; width: 35px; height: 20px; border-radius: 99px; background: #d7dcd8; transition: background .2s; }
.surface-toggle i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: white; box-shadow: 0 1px 4px rgba(0,0,0,.2); transition: transform .2s; }
.surface-toggle input:checked ~ i { background: var(--green); }
.surface-toggle input:checked ~ i::after { transform: translateX(15px); }
.brand-mode-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.brand-mode-card { position: relative; cursor: pointer; }
.brand-mode-card input { position: absolute; opacity: 0; }
.brand-mode-card > span { display: grid; align-content: start; min-height: 150px; border: 1px solid var(--line); border-radius: 9px; padding: 14px; background: white; }
.brand-mode-card input:checked + span { border-color: var(--green); background: var(--sage); box-shadow: inset 0 0 0 1px var(--green); }
.brand-mode-card i { margin-bottom: 16px; }
.brand-mode-card strong, .brand-mode-card small { display: block; }
.brand-mode-card strong { font-size: 10px; }
.brand-mode-card small { margin-top: 6px; line-height: 1.4; }
.logo-placeholder { display: grid; place-items: center; width: 38px; height: 38px; border: 1px dashed #9ca9a2; border-radius: 7px; color: var(--muted); font-style: normal; }
.logo-placeholder.wide { width: 70px; font-size: 9px; }
.logo-upload { display: grid; grid-template-columns: 90px 1fr; gap: 14px; align-items: center; border: 1px dashed #b9c2bd; border-radius: 10px; padding: 13px; cursor: pointer; }
.logo-upload > input { position: absolute; width: 1px !important; height: 1px; opacity: 0; pointer-events: none; }
.logo-upload strong, .logo-upload small { display: block; }
.logo-upload strong { font-size: 11px; }
.logo-upload small { margin-top: 5px; line-height: 1.4; }
.logo-preview { display: grid; place-items: center; height: 64px; border-radius: 7px; color: var(--muted); background: #f1eee7; text-align: center; }
.logo-preview img { max-width: 82px; max-height: 55px; object-fit: contain; }
.logo-preview i { font-style: normal; font-size: 20px; }
.logo-preview span { font-size: 7px; }
.logo-palette { display: grid; gap: 12px; border-top: 1px solid var(--line); padding-top: 18px; }
.logo-palette > div:first-child strong, .logo-palette > div:first-child small { display: block; }
.logo-palette > div:first-child strong { font-size: 11px; }
.logo-palette > div:first-child small { margin-top: 4px; }
.palette-target { display: flex; gap: 17px; }
.palette-target label { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; font-weight: 700; cursor: pointer; }
.palette-target input { accent-color: var(--green); }
.palette-swatches { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-height: 48px; }
.palette-swatches > span { color: var(--muted); font-size: 10px; }
.palette-swatch { display: grid; place-items: center; gap: 4px; width: 56px; border: 1px solid var(--line); border-radius: 8px; padding: 5px; background: white; cursor: pointer; }
.palette-swatch i { display: block; width: 42px; height: 28px; border-radius: 5px; background: var(--swatch); }
.palette-swatch code { color: var(--muted); font-family: inherit; font-size: 7px; }
.palette-swatch:hover { border-color: var(--green); transform: translateY(-1px); }
.settings-preview-wrap { position: sticky; top: 98px; }
.settings-preview { --preview-primary: var(--green); --preview-secondary: var(--gold); position: relative; display: grid; grid-template-columns: 42% 58%; min-height: 350px; overflow: hidden; padding-top: 45px; }
.settings-preview > .eyebrow { position: absolute; margin: 17px 20px; color: var(--preview-secondary); }
.preview-topbar { position: absolute; top: 45px; right: 0; left: 42%; display: flex; justify-content: flex-end; gap: 5px; height: 34px; border-bottom: 1px solid var(--line); padding: 7px 10px; background: white; }
.preview-topbar i { width: 20px; height: 20px; border: 1px solid var(--line); border-radius: 5px; }
.preview-navbar-primary .preview-topbar { border-color: color-mix(in srgb, var(--preview-primary) 75%, black); background: var(--preview-primary); }
.preview-navbar-primary .preview-topbar i { border-color: rgba(255,255,255,.45); }
.preview-sidebar { padding: 20px 12px; color: white; background: var(--preview-primary); }
.settings-preview:not(.preview-sidebar-primary) .preview-sidebar { color: var(--ink); border-right: 1px solid var(--line); background: white; }
.settings-preview:not(.preview-sidebar-primary) .preview-brand .brand-mark { color: white; background: var(--preview-primary); }
.settings-preview:not(.preview-sidebar-primary) .preview-nav { color: var(--muted); }
.settings-preview:not(.preview-sidebar-primary) .preview-nav.active { color: var(--preview-primary); background: color-mix(in srgb, var(--preview-primary) 12%, white); }
.preview-brand { display: flex; align-items: center; gap: 7px; min-height: 44px; margin-bottom: 27px; }
.preview-brand .brand-mark { width: 27px; height: 27px; color: var(--preview-primary); background: white; font-size: 11px; }
.preview-brand img { max-width: 45px; max-height: 30px; object-fit: contain; }
.preview-brand.horizontal img { max-width: 100px; max-height: 38px; }
.preview-brand strong { font-size: 9px; }
.preview-nav { margin-bottom: 7px; border-radius: 5px; padding: 8px; color: rgba(255,255,255,.68); font-size: 8px; }
.preview-nav.active { color: var(--preview-primary); background: white; }
.preview-nav span { margin-left: 4px; }
.preview-content { display: flex; flex-direction: column; padding: 62px 18px 20px; }
.preview-content > span { color: var(--preview-secondary); font-size: 7px; font-weight: 700; letter-spacing: .1em; }
.preview-content > strong { margin-top: 24px; font: 700 38px "Playfair Display", serif; }
.preview-content > small { color: var(--muted); font-size: 8px; }
.preview-content button { margin-top: auto; border: 0; border-radius: 6px; padding: 10px; color: white; background: var(--preview-primary); font-size: 8px; font-weight: 700; }
.settings-preview-wrap .button-full { margin-top: 14px; }
.settings-hint { color: var(--muted); font-size: 9px; line-height: 1.5; text-align: center; }

@media (max-width: 1100px) {
    .metric-grid { grid-template-columns: repeat(2, 1fr); }
    .content-grid { grid-template-columns: 1fr; }
    .settings-layout { grid-template-columns: 1fr; }
    .settings-preview-wrap { position: static; }
    .settings-preview { min-height: 320px; }
    .client-table-head, .client-row { grid-template-columns: 1.2fr 1.2fr .8fr .55fr 24px; }
    .client-table-head span:nth-child(3), .client-row > span:nth-child(3) { display: none; }
    .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .login-shell { display: block; }
    .login-story { display: none; }
    .login-panel { min-height: 100vh; padding: 30px 22px; }
    .login-form-wrap .mobile-brand { display: flex; margin-bottom: 70px; }
    .login-form-wrap h2 { font-size: 41px; }
    .app-shell { display: block; }
    .sidebar { display: none; }
    .topbar { position: relative; z-index: 50; justify-content: space-between; height: 72px; border-bottom: 0; border-radius: 0 0 22px 22px; padding: 0 18px; }
    .topbar::after { content: ""; position: absolute; right: 12px; bottom: -2px; left: 12px; height: 5px; border-radius: 999px; background: var(--gold); }
    .topbar .mobile-brand { display: flex; }
    .mobile-brand-link { display: flex; align-items: center; min-width: 0; }
    .mobile-brand-link .brand { min-width: 0; }
    .mobile-brand-link .brand-name { overflow: hidden; max-width: 150px; text-overflow: ellipsis; white-space: nowrap; }
    .topbar .brand-logo-horizontal { width: 105px; height: 40px; }
    .top-actions > .notification, .top-actions > .button, .top-actions > .mobile-logout { display: none; }
    .mobile-menu { display: block; }
    .top-actions { gap: 0; }
    .topbar .button { width: 43px; min-height: 43px; padding: 0; font-size: 0; }
    .topbar .button span { font-size: 19px; }
    .mobile-logout { display: none; }
    .mobile-menu-panel { position: fixed; top: 72px; right: 0; left: 0; width: 100vw; max-height: calc(100vh - 72px); border-top: 0; border-radius: 0 0 14px 14px; padding: 18px 16px 24px; }
    .mobile-user-card { grid-template-columns: 38px minmax(0, 1fr) auto; gap: 10px; }
    .mobile-user-copy { min-width: 0; }
    .mobile-user-actions { display: flex; grid-column: 3; grid-row: 1; gap: 6px; align-items: center; }
    .mobile-profile-button, .mobile-exit-button { min-height: 34px; padding: 0 9px; white-space: nowrap; }
    .dashboard-content { padding: 28px 16px 40px; }
    .profile-panel, .profile-data { grid-template-columns: 1fr; }
    .welcome { margin-bottom: 24px; }
    .welcome h1 { font-size: 37px; }
    .metric-grid, .client-metrics { grid-template-columns: 1fr 1fr; gap: 10px; }
    .metric-card { min-height: 112px; padding: 15px; }
    .metric-card strong { margin-top: 16px; font-size: 31px; }
    .metric-icon { top: 13px; right: 13px; }
    .appointment-row { grid-template-columns: 46px 65px 1fr auto; gap: 10px; padding: 12px; }
    .appointment-row .status, .appointment-row .price { display: none; }
    .appointment-row .more-button { grid-column: 4; grid-row: 1; }
    .page-heading { align-items: flex-start; }
    .desktop-page-action { display: none; }
    .week-controls { flex: 0 0 auto; }
    .calendar-heading { align-items: flex-end; }
    .calendar-heading > div:first-child > p:last-child { max-width: 180px; }
    .two-columns, .service-options { grid-template-columns: 1fr; }
    .modal { width: calc(100vw - 18px); max-height: calc(100vh - 18px); }
    .modal-card { max-height: calc(100vh - 18px); overflow: auto; }
    .modal-header, .modal-body, .modal-footer { padding-left: 17px; padding-right: 17px; }
    .modal-footer { position: sticky; bottom: 0; }
    .modal-footer .button { padding: 0 12px; }
    .booking-summary { justify-content: space-between; }
    .directory-toolbar { align-items: flex-start; flex-direction: column; }
    .client-table-head { display: none; }
    .client-row { grid-template-columns: 1fr auto; gap: 8px; padding: 15px 17px; }
    .client-row > span:nth-child(2), .client-row > span:nth-child(3), .client-row > span:nth-child(4), .client-row > span:nth-child(5) { display: none; }
    .client-row .row-arrow { display: block; }
    .client-modal-layout { grid-template-columns: 1fr; max-height: none; }
    .client-personal-data { border-right: 0; border-bottom: 1px solid var(--line); }
    .color-settings, .surface-settings, .brand-mode-options { grid-template-columns: 1fr; }
    .brand-mode-card > span { min-height: 105px; }
    .settings-preview { min-height: 300px; }
    .service-grid { grid-template-columns: 1fr; }
    .service-card { min-height: 295px; }
    .quick-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0 12px 12px; }
    .quick-panel .panel-header { grid-column: 1 / -1; min-height: 0; padding: 19px 5px 12px; }
    .quick-action { grid-template-columns: 1fr auto; grid-template-rows: auto 1fr; grid-template-areas: "icon arrow" "copy copy"; gap: 10px; width: auto; min-height: 132px; margin: 0; padding: 12px; align-items: start; }
    .quick-action .quick-icon { grid-area: icon; }
    .quick-action > span:not(.quick-icon) { grid-area: copy; }
    .quick-action > b { grid-area: arrow; }
    .quick-action strong { font-size: 11px; line-height: 1.25; }
    .quick-action small { line-height: 1.35; }
}

@media (max-width: 430px) {
    .metric-grid { grid-template-columns: 1fr; }
    .metric-card { min-height: 108px; }
    .appointment-time { display: none; }
    .appointment-row { grid-template-columns: 46px 1fr auto; }
    .appointment-row .more-button { grid-column: 3; }
    .top-actions { gap: 7px; }
    .notification { display: none; }
    .client-stat-grid { grid-template-columns: 1fr 1fr; }
    .calendar-heading { display: block; }
    .week-controls { margin-top: 18px; }
}

.admin-page { min-height: 100vh; background: #f5f2ec; color: var(--ink); }
.admin-shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 54px 0 80px; }
.admin-header { display: flex; justify-content: space-between; gap: 30px; align-items: flex-start; margin-bottom: 32px; }
.admin-header h1 { margin: 5px 0 8px; font: 700 clamp(36px, 6vw, 58px)/1.05 "Playfair Display", Georgia, serif; }
.admin-header p:last-child { max-width: 700px; color: var(--muted); }
.admin-shop-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); gap: 16px; margin: 25px 0; }
.admin-shop-card { padding: 22px; }
.admin-shop-card > div:first-child { display: flex; gap: 8px; align-items: center; color: var(--muted); }
.admin-shop-card h2 { margin: 20px 0 5px; font-size: 24px; }
.admin-shop-card code { color: var(--brand-primary); }
.admin-shop-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 22px 0; }
.admin-shop-card dl div { border-radius: 12px; padding: 12px; background: var(--soft); }
.admin-shop-card dt { color: var(--muted); font-size: 12px; }
.admin-shop-card dd { margin: 4px 0 0; font-size: 22px; font-weight: 700; }
.admin-shop-card .button { width: 100%; }
.admin-empty { display: flex; gap: 18px; align-items: center; margin: 28px 0; padding: 22px; border-radius: 18px; background: #e9efe9; }
.admin-empty > span { display: grid; flex: 0 0 50px; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--brand-primary); color: #fff; font-size: 22px; font-weight: 700; }
.admin-empty h2, .admin-empty p { margin: 0; }
.admin-empty p { margin-top: 5px; color: var(--muted); }
.admin-create-card, .admin-login-card { max-width: 820px; padding: 28px; }
.admin-login-card { max-width: 480px; }
.admin-create-card > div { margin-bottom: 22px; }
.admin-create-card h2, .admin-login-card h2 { margin: 5px 0 0; font-size: 28px; }
.admin-create-form { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.admin-create-form label, .admin-login-card label { display: grid; gap: 7px; font-weight: 600; }
.admin-create-form small { color: var(--muted); font-weight: 400; }
.admin-create-form .button { grid-column: 1 / -1; justify-self: start; }
@media (max-width: 700px) {
    .admin-shell { padding-top: 28px; }
    .admin-header { display: block; }
    .admin-header form { margin-top: 18px; }
    .admin-create-form { grid-template-columns: 1fr; }
    .admin-create-form .button { grid-column: auto; width: 100%; }
}


/* Gestione blocchi di accesso piattaforma */
.security-lockouts {
    max-width: 980px;
    padding: 28px;
}

.security-lockouts-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.security-lockouts-header h2 {
    margin: 5px 0 0;
    font-size: 28px;
}

.security-lockouts-header p:last-child {
    margin: 8px 0 0;
    color: var(--muted);
}

.security-lockouts-count {
    display: grid;
    place-items: center;
    flex: 0 0 106px;
    min-height: 82px;
    border: 1px solid #ead8c2;
    border-radius: 14px;
    color: #835729;
    background: #fff8ee;
    text-align: center;
}

.security-lockouts-count strong {
    font: 700 27px/1 "Playfair Display", serif;
}

.security-lockouts-count span {
    margin-top: 3px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.security-lockout-list {
    display: grid;
    gap: 10px;
}

.security-lockout-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto auto;
    gap: 14px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px;
    background: #fff;
}

.security-lockout-item:hover {
    border-color: #d9c9b5;
}

.security-lockout-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    font-size: 21px;
    font-weight: 700;
}

.security-lockout-icon.is-account {
    color: #835729;
    background: #fff2df;
}

.security-lockout-icon.is-ip {
    color: #3f6373;
    background: #e8f1f4;
}

.security-lockout-details {
    min-width: 0;
}

.security-lockout-label {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 7px;
}

.security-lockout-label > span {
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.security-lockout-label strong {
    overflow-wrap: anywhere;
    color: var(--ink);
    font-size: 13px;
}

.security-lockout-details p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 10px;
}

.security-lockout-attempts {
    min-width: 70px;
    text-align: center;
}

.security-lockout-attempts strong {
    display: block;
    color: #9a453d;
    font-size: 18px;
    line-height: 1;
}

.security-lockout-attempts small {
    color: #bd8c52;
    font-size: 11px;
}

.security-lockout-attempts span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.security-unlock-button {
    min-width: 116px;
    color: #7f443d;
    border-color: #e7c6c1;
    background: #fff7f4;
}

.security-unlock-button:hover {
    color: #79362f;
    border-color: #dca49d;
    background: #fff0ec;
}

.security-lockouts-empty {
    display: flex;
    align-items: center;
    gap: 13px;
    border: 1px dashed #c6d9cc;
    border-radius: 12px;
    padding: 19px;
    color: #326049;
    background: #f4faf5;
}

.security-lockouts-empty > span {
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: white;
    background: #4f8a65;
    font-weight: 700;
}

.security-lockouts-empty strong,
.security-lockouts-empty p {
    display: block;
    margin: 0;
}

.security-lockouts-empty p {
    margin-top: 3px;
    color: #5f7f6b;
    font-size: 11px;
}

@media (max-width: 700px) {
    .security-lockouts {
        padding: 22px 18px;
    }

    .security-lockouts-header {
        align-items: center;
    }

    .security-lockouts-header h2 {
        font-size: 25px;
    }

    .security-lockouts-count {
        flex-basis: 82px;
        min-height: 68px;
    }

    .security-lockout-item {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 11px;
    }

    .security-lockout-icon {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }

    .security-lockout-attempts {
        grid-column: 2;
        display: flex;
        align-items: baseline;
        gap: 5px;
        min-width: 0;
        text-align: left;
    }

    .security-lockout-attempts span {
        margin: 0;
    }

    .security-lockout-item form {
        grid-column: 1 / -1;
    }

    .security-unlock-button {
        width: 100%;
    }
}
