.profile-options{padding:28px;margin-bottom:24px}.profile-options h2{font-size: var(--text-heading);margin:0 0 18px}.profile-options .form-stack{margin-top:24px}.tax-setting{display:grid;gap:16px}.tax-setting p,.profile-options .field-help{font-size: var(--text-small);line-height:1.7;color:var(--muted)}.tax-setting .button{justify-self:start;white-space:normal}.profile-options select,.catalog-search input{width:100%;font:inherit;padding:12px;border:1px solid var(--border);border-radius:12px;background:#fff;min-height:44px}.profile-options label{display:grid;gap:9px;font-size: var(--text-small);font-weight:600}.profile-buttons{display:flex;flex-wrap:wrap;gap:12px;align-items:center}.logo-preview{display:flex;align-items:center;justify-content:center;min-height:100px;border:1px dashed var(--border);border-radius:14px;padding:20px;background:#fafbfe;color:var(--muted);font-size: var(--text-small)}.logo-preview img{max-width:100%;max-height:120px;object-fit:contain}.logo-upload{position:relative;overflow:hidden;cursor:pointer;display:inline-flex!important}.logo-upload input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%}.logo-upload:focus-within{outline:3px solid #1945ce;outline-offset:3px}.catalog-list{margin-top:20px}.catalog-card{padding:18px 0;border-top:1px solid var(--border)}.catalog-card h3{font-size: var(--text-body);overflow-wrap:anywhere;margin:6px 0}.catalog-card p{font-size: var(--text-small);color:var(--muted)}.catalog-card .text-button{min-height:44px}.empty-catalog{font-size: var(--text-label);color:var(--muted);line-height:1.7}.catalog-picker{display:grid;gap:10px;margin-top:18px;max-height:50vh;overflow:auto}.catalog-choice{display:flex;justify-content:space-between;gap:16px;text-align:left;padding:16px;border:1px solid var(--border);border-radius:12px;background:#fff;font:inherit;font-size: var(--text-small);cursor:pointer}.catalog-choice strong{display:block;overflow-wrap:anywhere}.catalog-choice small{display:block;margin-top:6px;color:var(--muted)}.catalog-choice[hidden]{display:none}.catalog-choice>span:last-child{min-width:70px}.catalog-search{display:grid;gap:8px}.invoice-pricing{display:flex;flex-wrap:wrap;align-items:center;gap:16px;margin-bottom:24px}.invoice-pricing label{flex:1;min-width:150px}.invoice-pricing .button{white-space:normal}.tax-mode-note{font-size: var(--text-small);line-height:1.7;padding:16px;background:#f0f4ff;border-radius:12px;margin-bottom:24px}.gross-rounding{font-size: var(--text-caption);line-height:1.6;color:var(--muted);display:block;margin-top:8px}@media(max-width:600px){.profile-options{padding:20px}.profile-options h2{font-size: var(--text-subheading)}.invoice-pricing>*{width:100%}.tax-setting .button{width:100%}.catalog-choice{flex-direction:column;gap:8px}}
.profile-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:20px;width:100%;max-width:900px;margin:0 auto;min-width:0}
.profile-layout>*{width:100%;min-width:0;max-width:100%;margin:0}
.profile-layout .profile-panel,.profile-layout .profile-options{max-width:none;margin:0;padding:20px}
.profile-layout .account-card{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:0;padding:18px 20px;background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}
.profile-layout .account-avatar{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border-radius:50%;background:var(--blue-light);color:var(--blue);font-size: var(--text-action);font-weight:750}
.profile-layout .account-card>div{display:flex;flex:1;flex-direction:column;gap:3px;min-width:0;overflow-wrap:anywhere}
.profile-layout .account-card>div>strong{font-size: var(--text-body);line-height:1.5}
.profile-layout .account-card>div>span{font-size: var(--text-small);line-height:1.6;color:var(--muted)}
.profile-layout .account-label{margin-left:auto;font-size: var(--text-caption);line-height:1.6;color:#4d5d7b;background:#f2f5fb;border-radius:9px;padding:5px 9px}
.profile-layout .logout-button{justify-self:start;width:auto;min-height:48px;margin:0}
.profile-layout label,.profile-layout .form-row>*{min-width:0}
.profile-layout input,.profile-layout select,.profile-layout textarea,.catalog-search input{font-size: var(--text-body);min-height:48px;min-width:0}
.profile-layout .button,.profile-buttons .text-button{min-height:44px;white-space:normal}
.profile-layout .field-help{font-size: var(--text-label);margin:12px 0}
.profile-layout #settings-form>.button{width:100%;justify-self:start}
.profile-layout .invoice-hint{text-align:left;margin:0;font-size: var(--text-small)}
.catalog-choice{min-height:48px;min-width:0}
.catalog-choice>span{min-width:0;overflow-wrap:anywhere}
.catalog-card .profile-buttons{margin-top:8px}
.profile-layout>.logout-button{order:99}
.catalog-line-picker{display:grid;gap:8px;margin:0 0 16px;font-size: var(--text-small);font-weight:600;min-width:0}
.form-stack .invoice-address-option{display:flex;flex-direction:row;align-items:flex-start;gap:12px;min-height:44px;padding:10px 0;cursor:pointer}
.form-stack .invoice-address-option input{flex:0 0 22px;width:22px;height:22px;min-height:22px;margin:1px 0;padding:0;accent-color:var(--ink)}
.invoice-address-option input:focus-visible{outline:3px solid var(--blue);outline-offset:3px}
.invoice-address-option>span{display:grid;gap:5px;min-width:0;overflow-wrap:anywhere}
.invoice-address-option strong{font-size: var(--text-label);line-height:1.5}
.invoice-address-option small{font-size: var(--text-small);font-weight:400;line-height:1.6;color:#4d5d7b}
.catalog-line-picker select{display:block;width:100%;max-width:100%;min-width:0;min-height:48px;padding:11px 12px;border:1px solid var(--border);border-radius:12px;background:#fff;color:var(--ink);font:inherit;font-size: var(--text-body);text-overflow:ellipsis}
@media(min-width:720px){.profile-layout .profile-panel,.profile-layout .profile-options{padding:28px}.profile-layout #settings-form{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px}.profile-layout #settings-form>.form-row,.profile-layout #settings-form>.form-divider,.profile-layout #settings-form>h3,.profile-layout #settings-form>.invoice-hint,.profile-layout #settings-form>.form-error,.profile-layout #settings-form>button{grid-column:1/-1}.profile-layout #settings-form>.button{width:auto}.catalog-card{display:flex;align-items:center;justify-content:space-between;gap:24px}.catalog-card>div:first-child{min-width:0}.catalog-card .profile-buttons{flex-shrink:0}}
@media(min-width:1000px){.profile-layout{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start}.profile-layout>*{grid-column:1/-1}.profile-layout>.profile-options:has(.logo-preview),.profile-layout>.profile-options:has(.tax-setting){grid-column:auto}.profile-layout .logout-button{grid-column:1/-1}}
@media(max-width:400px){.profile-layout{gap:16px}.profile-layout .profile-panel,.profile-layout .profile-options{padding:16px}.profile-layout .form-row:not(.postcode-row){grid-template-columns:minmax(0,1fr)}.profile-layout .account-label{display:none}.profile-buttons>.button{width:100%}}

.profile-layout input:not([type="checkbox"]):not([type="radio"]),.profile-layout select,.profile-layout textarea,.catalog-search input{min-height:60px}
.profile-layout .account-label{display:block}
@media(max-width:650px){.profile-layout .form-row,.profile-layout .postcode-row{grid-template-columns:minmax(0,1fr)}}
