.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.btn--block { width: 100%; }
.btn--outline { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn--outline:hover { border-color: var(--ink); }
.btn--text { background: transparent; color: var(--muted); padding-left: 12px; padding-right: 12px; }
.btn--text:hover { color: var(--ink); transform: none; }

.field { display: grid; gap: 7px; }
.field + .field, .field-row + .field, .field + .field-row, .field-row + .field-row { margin-top: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.field-row > .field { margin-top: 0; }
.field__label { display: flex; align-items: baseline; gap: 8px; font-weight: 600; font-size: .9rem; color: var(--ink); }
.field__optional { font-weight: 400; font-size: .78rem; color: #8b909b; }
.field__hint { font-size: .8rem; color: var(--muted); line-height: 1.45; }
.field__error { font-size: .82rem; color: #c0262d; font-weight: 500; line-height: 1.45; }

.input {
    width: 100%; font: 400 .97rem/1.4 var(--font-body); color: var(--ink);
    background: var(--white); border: 1.5px solid var(--line); border-radius: 12px;
    padding: 12px 14px; transition: border-color .15s ease, box-shadow .15s ease;
}
.input::placeholder { color: #a5a9b2; }
.input:hover { border-color: #c9c7bc; }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(200, 245, 66, .45); }
.input[aria-invalid="true"] { border-color: #e0565c; }
.input[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(224, 86, 92, .18); }
.input--mono { font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; font-size: .92rem; letter-spacing: .01em; }
textarea.input { resize: vertical; min-height: 92px; }

.input-group { position: relative; }
.input-group .input { padding-right: 92px; }
.input-group__action {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    font: 600 .8rem/1 var(--font-body); color: var(--muted); background: var(--paper);
    border: 0; border-radius: 8px; padding: 8px 10px; cursor: pointer;
}
.input-group__action:hover { color: var(--ink); }

.input-prefix { display: flex; align-items: stretch; }
.input-prefix__label {
    display: flex; align-items: center; padding: 0 4px 0 14px; white-space: nowrap;
    font: 500 .92rem/1 ui-monospace, 'SFMono-Regular', Menlo, monospace; color: var(--muted);
    background: var(--paper); border: 1.5px solid var(--line); border-right: 0; border-radius: 12px 0 0 12px;
}
.input-prefix .input { border-radius: 0 12px 12px 0; padding-left: 4px; background: var(--white); }
.input-prefix:focus-within .input-prefix__label { border-color: var(--ink); }
.input-prefix .input:focus { box-shadow: none; }
.input-prefix:focus-within { border-radius: 12px; box-shadow: 0 0 0 4px rgba(200, 245, 66, .45); }
.field--invalid .input-prefix__label { border-color: #e0565c; }

.checkbox { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--muted); cursor: pointer; }
.checkbox input { width: 18px; height: 18px; accent-color: var(--ink); }

.switch { display: flex; align-items: flex-start; gap: 14px; margin-top: 24px; cursor: pointer; }
.switch__input { position: absolute; opacity: 0; pointer-events: none; }
.switch__track {
    position: relative; flex-shrink: 0; width: 46px; height: 26px; margin-top: 2px;
    border-radius: 999px; background: #cfcdc3; transition: background-color .2s ease;
}
.switch__track::after {
    content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
    background: var(--white); box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s ease;
}
.switch__input:checked + .switch__track { background: var(--ink); }
.switch__input:checked + .switch__track::after { transform: translateX(20px); background: var(--lime); }
.switch__input:focus-visible + .switch__track { outline: 3px solid var(--lime); outline-offset: 3px; }
.switch__text { display: grid; gap: 2px; }
.switch__text strong { font-size: .95rem; color: var(--ink); }
.switch__text small { font-size: .82rem; color: var(--muted); line-height: 1.45; }

.alert { padding: 14px 18px; border-radius: 14px; font-size: .92rem; margin-bottom: 24px; }
.alert--error { background: #fdecec; color: #8c1d22; border: 1px solid #f5c6c8; }

.notice {
    display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; padding: 14px 16px;
    border-radius: 14px; background: #fff7e0; border: 1px solid #f3dd9b; font-size: .86rem; color: #6a4f00; line-height: 1.5;
}
.notice .icon { color: #b07d00; margin-top: 1px; }
.notice code { font-size: .85em; background: rgba(255, 255, 255, .7); padding: 1px 5px; border-radius: 5px; }

.auth-body { background: var(--paper); }
.auth { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 100vh; }

.auth__brand {
    position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;
    padding: 44px 56px; background: var(--ink); color: var(--white);
}
.auth__brand::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at 50% 45%, #000 15%, transparent 70%);
}
.auth__brand > * { position: relative; }
.auth__signal { position: relative; align-self: center; width: 120px; height: 120px; display: grid; place-items: center; }
.auth__signal span {
    position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--lime); opacity: 0;
    animation: signal 3.6s ease-out infinite;
}
.auth__signal span:nth-child(2) { animation-delay: 1.2s; }
.auth__signal span:nth-child(3) { animation-delay: 2.4s; }
.auth__signal-mark .logo__mark { width: 84px; height: 84px; filter: drop-shadow(0 20px 40px rgba(200, 245, 66, .25)); }
@keyframes signal {
    0% { transform: scale(.7); opacity: .6; }
    100% { transform: scale(2.8); opacity: 0; }
}
.auth__brand-copy h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 750; max-width: 440px; }
.auth__brand-copy em { font-style: normal; color: var(--lime); }
.auth__brand-copy p { margin-top: 14px; color: var(--muted-dark); max-width: 400px; }

.auth__panel { display: grid; place-items: center; padding: 48px 24px; }
.auth__card { width: 100%; max-width: 400px; }
.auth__mobile-logo { display: none; margin-bottom: 36px; }
.auth__card h1 { font-size: 2.3rem; font-weight: 750; }
.auth__lead { color: var(--muted); margin: 8px 0 32px; }
.auth__form { display: grid; gap: 20px; }
.auth__form .field + .field { margin-top: 0; }
.auth__form .btn { margin-top: 6px; }
.auth__footnote { margin-top: 28px; font-size: .8rem; color: var(--muted); line-height: 1.5; }
.auth__footnote a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.auth__card--wide { max-width: 480px; }
.auth__form .alert { margin-bottom: 0; }
.auth__form .field-row .field + .field, .auth__form .field + .field-row, .auth__form .field-row + .field { margin-top: 0; }

.plan-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border: 0; padding: 0; margin: 0; }
.plan-choice legend { grid-column: 1 / -1; margin-bottom: 7px; padding: 0; }
.plan-choice .field__error { grid-column: 1 / -1; }
.plan-choice__option { position: relative; cursor: pointer; }
.plan-choice__option input { position: absolute; opacity: 0; }
.plan-choice__option span {
    display: grid; gap: 2px; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line);
    background: var(--white); font-size: .88rem; color: var(--muted);
}
.plan-choice__option strong { font-size: 1rem; color: var(--ink); }
.plan-choice__option input:checked + span { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(200, 245, 66, .45); }
.plan-choice__option input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }

.checkbox--top { align-items: flex-start; line-height: 1.45; }
.checkbox--top input { flex-shrink: 0; margin-top: 1px; }
.checkbox a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }

.payment { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; margin-bottom: 24px; }
.payment__qr { width: 200px; padding: 10px; border-radius: 16px; background: var(--white); border: 1px solid var(--line); }
.payment__qr svg { display: block; width: 100%; height: auto; }
.payment__value { font-size: 2rem; font-weight: 750; letter-spacing: -.02em; margin: 4px 0 8px; }
.payment p { color: var(--muted); font-size: .92rem; }
.payment__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

.admin-body { background: var(--paper); min-height: 100vh; }

.topbar { position: sticky; top: 0; z-index: 40; background: var(--ink); color: var(--white); }
.topbar__inner { display: flex; align-items: center; gap: 36px; height: 68px; }
.topbar__brand { display: flex; align-items: center; gap: 10px; }
.topbar__brand .logo__mark { width: 30px; height: 30px; }
.topbar__brand .logo__word { font-size: 1.25rem; }
.topbar__badge {
    font: 600 .68rem/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase;
    color: var(--lime); border: 1px solid rgba(200, 245, 66, .35); border-radius: 999px; padding: 4px 8px;
}
.topbar__nav { display: flex; gap: 6px; flex: 1; }
.topbar__nav a { padding: 8px 14px; border-radius: 10px; font-size: .92rem; font-weight: 500; color: var(--muted-dark); }
.topbar__nav a:hover { color: var(--white); }
.topbar__nav a.is-active { color: var(--white); background: rgba(255, 255, 255, .08); }
.topbar__user { display: flex; align-items: center; gap: 10px; font-size: .9rem; }
.topbar__avatar {
    width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
    background: var(--lime); color: var(--ink); font-weight: 700; text-transform: uppercase;
}
.topbar__name { color: var(--muted-dark); }
.topbar__logout {
    font: 500 .85rem/1 var(--font-body); color: var(--muted-dark); background: transparent;
    border: 1px solid var(--line-dark); border-radius: 999px; padding: 8px 14px; cursor: pointer;
}
.topbar__logout:hover { color: var(--white); border-color: rgba(255, 255, 255, .3); }

.admin { padding: 44px 0 140px; }

.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 32px; }
.page-head__title { font-size: clamp(2rem, 3.6vw, 2.7rem); font-weight: 750; }
.page-head__lead { color: var(--muted); margin-top: 6px; }
.page-head__identity { display: flex; align-items: center; gap: 20px; }
.page-head__avatar { width: 72px; height: 72px; border-radius: 22px; font-size: 1.5rem; }
.back-link { display: inline-block; font-size: .88rem; font-weight: 500; color: var(--muted); margin-bottom: 8px; }
.back-link:hover { color: var(--ink); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 32px; }
.stat {
    display: grid; gap: 4px; padding: 22px 24px; border-radius: var(--radius);
    background: var(--white); border: 1px solid var(--line);
}
.stat--lime { background: var(--ink); border-color: var(--ink); color: var(--white); }
.stat__label { font-size: .82rem; font-weight: 600; color: var(--muted); }
.stat--lime .stat__label, .stat--lime .stat__caption { color: var(--muted-dark); }
.stat__value { font: 750 2.4rem/1.1 var(--font-display); letter-spacing: -.03em; }
.stat--lime .stat__value { color: var(--lime); }
.stat__caption { font-size: .82rem; color: var(--muted); }

.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.search { position: relative; flex: 1; max-width: 420px; }
.search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search__input {
    width: 100%; font: 400 .95rem/1 var(--font-body); padding: 13px 16px 13px 44px;
    border: 1.5px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink);
}
.search__input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(200, 245, 66, .45); }
.segmented { display: inline-flex; padding: 4px; background: var(--paper-2); border-radius: 999px; }
.segmented__item { padding: 8px 18px; border-radius: 999px; font-size: .88rem; font-weight: 600; color: var(--muted); }
.segmented__item:hover { color: var(--ink); }
.segmented__item.is-active { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgba(13, 17, 23, .1); }

.company-avatar {
    display: grid; place-items: center; overflow: hidden; flex-shrink: 0;
    width: 64px; height: 64px; border-radius: 20px;
    background: var(--avatar-bg, var(--ink)); color: var(--avatar-fg, var(--white));
    font: 750 1.3rem/1 var(--font-display); letter-spacing: -.02em;
}
.company-avatar img { width: 100%; height: 100%; object-fit: cover; background: var(--white); }

.company-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.company-card {
    position: relative; display: flex; flex-direction: column; overflow: hidden;
    background: var(--white); border: 1px solid var(--line); border-radius: 24px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.company-card:hover { transform: translateY(-3px); box-shadow: 0 22px 44px rgba(13, 17, 23, .08); border-color: #d2d0c5; }
.company-card:focus-within { border-color: var(--ink); }
.company-card__cover {
    height: 76px; background:
        radial-gradient(circle at 85% -20%, rgba(255, 255, 255, .28), transparent 55%),
        var(--brand);
}
.company-card__body { flex: 1; padding: 0 22px 18px; }
.company-card__top { display: flex; justify-content: space-between; align-items: flex-end; margin-top: -32px; margin-bottom: 14px; }
.company-card__avatar { border: 4px solid var(--white); box-shadow: 0 6px 16px rgba(13, 17, 23, .12); }
.company-card__name { font-size: 1.25rem; letter-spacing: -.02em; }
.company-card__link::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.company-card__link:focus-visible { outline: none; }
.company-card__legal { font-size: .84rem; color: var(--muted); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.company-card__meta { display: grid; gap: 6px; margin-top: 16px; font-size: .86rem; color: #2b313d; }
.company-card__meta li { display: grid; grid-template-columns: 76px 1fr; gap: 8px; }
.company-card__meta li span { color: #8b909b; font-size: .8rem; }
.company-card__footer {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 22px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted);
}
.company-card__edit { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); }
.company-card__edit .icon { width: 1em; height: 1em; transition: transform .2s ease; }
.company-card:hover .company-card__edit .icon { transform: translateX(3px); }
.company-card.is-inactive .company-card__cover, .company-card.is-inactive .company-card__avatar { filter: grayscale(1) opacity(.55); }

.status-pill {
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px;
    font-size: .76rem; font-weight: 600; background: var(--lime-soft); color: #3d4f00;
}
.status-pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #6a9a00; }
.status-pill--off { background: var(--paper-2); color: var(--muted); }
.status-pill--off::before { background: #a5a9b2; }
.status-pill--wait { background: #fff7e0; color: #6a4f00; }
.status-pill--wait::before { background: #e0a800; }

.url-chip {
    position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 8px; max-width: 100%;
    margin-top: 14px; padding: 7px 10px 7px 12px; border-radius: 10px; cursor: pointer;
    background: var(--paper); border: 1px solid var(--line);
    font: 500 .8rem/1.2 ui-monospace, 'SFMono-Regular', Menlo, monospace; color: var(--muted);
    transition: border-color .15s ease, background-color .15s ease;
}
.url-chip:hover { border-color: var(--ink); background: var(--white); }
.url-chip strong { color: var(--ink); font-weight: 600; }
.url-chip__text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.url-chip .icon { width: 15px; height: 15px; flex-shrink: 0; }
.url-chip--lg { margin: 0; padding: 11px 14px 11px 16px; font-size: .88rem; border-radius: 12px; background: var(--white); }

.empty {
    display: grid; justify-items: center; text-align: center; gap: 10px;
    padding: 72px 24px; border: 1.5px dashed #d2d0c5; border-radius: 28px; background: rgba(255, 255, 255, .5);
}
.empty__art { position: relative; width: 84px; height: 84px; display: grid; place-items: center; margin-bottom: 12px; border-radius: 26px; background: var(--ink); color: var(--lime); }
.empty__art .icon { width: 38px; height: 38px; }
.empty__art span { position: absolute; inset: 0; border-radius: 26px; border: 2px solid var(--lime); opacity: 0; animation: signal 3.6s ease-out infinite; }
.empty__art span:nth-child(2) { animation-delay: 1.2s; }
.empty__art span:nth-child(3) { animation-delay: 2.4s; }
.empty h2 { font-size: 1.5rem; }
.empty p { color: var(--muted); max-width: 420px; margin-bottom: 12px; }

.pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 36px; }
.pager__btn {
    padding: 10px 18px; border-radius: 999px; font-size: .9rem; font-weight: 600;
    background: var(--white); border: 1px solid var(--line); color: var(--ink);
}
.pager__btn:hover { border-color: var(--ink); }
.pager__btn.is-disabled { color: #b5b8c0; pointer-events: none; }
.pager__info { font-size: .88rem; color: var(--muted); }

.company-form__layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.company-form__fields { display: grid; gap: 20px; }

.panel-card { padding: 28px; border-radius: 24px; background: var(--white); border: 1px solid var(--line); }
.panel-card__head { display: flex; gap: 14px; margin-bottom: 24px; }
.panel-card__num {
    flex-shrink: 0; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center;
    background: var(--ink); color: var(--lime); font: 700 .85rem/1 var(--font-display);
}
.panel-card__head h2 { font-size: 1.2rem; letter-spacing: -.015em; }
.panel-card__head p { font-size: .87rem; color: var(--muted); margin-top: 3px; }

.dropzone {
    display: flex; align-items: center; gap: 18px; padding: 16px;
    border: 1.5px dashed #cfcdc3; border-radius: 16px; background: var(--paper);
    transition: border-color .15s ease, background-color .15s ease;
}
.dropzone.is-dragging { border-color: var(--ink); background: var(--lime-soft); }
.dropzone__preview {
    display: grid; place-items: center; overflow: hidden; flex-shrink: 0; width: 72px; height: 72px; border-radius: 20px;
    background: var(--avatar-bg); color: var(--avatar-fg); font: 750 1.4rem/1 var(--font-display);
}
.dropzone__preview img { width: 100%; height: 100%; object-fit: cover; background: var(--white); }
.dropzone__body p { font-size: .88rem; color: var(--muted); margin-bottom: 8px; }
.dropzone__body strong { color: var(--ink); }
.dropzone__actions { display: flex; gap: 6px; align-items: center; }
.dropzone__actions label { cursor: pointer; }
.dropzone__actions label:focus-within { outline: 3px solid var(--lime); outline-offset: 2px; }

.color-picker { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.color-picker__swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch {
    width: 32px; height: 32px; border-radius: 10px; cursor: pointer; padding: 0;
    background: var(--swatch); border: 2px solid var(--white); box-shadow: 0 0 0 1px var(--line);
    transition: transform .15s ease, box-shadow .15s ease;
}
.swatch:hover { transform: scale(1.08); }
.swatch.is-selected { box-shadow: 0 0 0 2px var(--ink); }
.color-picker__custom { display: flex; align-items: center; gap: 8px; }
.color-picker__custom input[type="color"] {
    width: 44px; height: 44px; padding: 3px; border-radius: 12px; cursor: pointer;
    border: 1.5px solid var(--line); background: var(--white);
}
.color-picker__custom .input { width: 120px; }

.company-form__preview { position: relative; }
.preview-sticky { position: sticky; top: 92px; display: grid; justify-items: center; gap: 14px; }
.preview-label { font: 600 .75rem/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mini-phone {
    width: 260px; padding: 9px; border-radius: 40px; background: #05070a;
    box-shadow: 0 0 0 1.5px #2a3242, 0 30px 60px rgba(13, 17, 23, .22);
}
.mini-phone__screen {
    display: flex; flex-direction: column; align-items: center; height: 500px; overflow: hidden;
    border-radius: 32px; background: var(--paper); text-align: center; transition: filter .3s ease;
}
.mini-phone__screen.is-inactive { filter: grayscale(1) opacity(.55); }
.mini-phone__cover {
    align-self: stretch; height: 100px; flex-shrink: 0;
    background: radial-gradient(circle at 85% -20%, rgba(255, 255, 255, .28), transparent 55%), var(--brand);
    transition: background-color .2s ease;
}
.mini-phone__avatar {
    display: grid; place-items: center; overflow: hidden; width: 70px; height: 70px; margin-top: -35px;
    border-radius: 22px; border: 4px solid var(--paper);
    background: var(--avatar-bg); color: var(--avatar-fg); font: 750 1.3rem/1 var(--font-display);
}
.mini-phone__avatar img { width: 100%; height: 100%; object-fit: cover; background: var(--white); }
.mini-phone__name { margin-top: 10px; padding: 0 18px; font: 750 1.15rem/1.2 var(--font-display); letter-spacing: -.02em; word-break: break-word; }
.mini-phone__meta { min-height: 1.3em; margin-top: 4px; padding: 0 18px; font-size: .72rem; color: var(--muted); }
.mini-phone__buttons { display: grid; gap: 8px; align-self: stretch; padding: 16px 16px 0; }
.mini-phone__buttons span {
    height: 46px; border-radius: 14px; background: var(--white); border: 1px solid var(--line);
    position: relative;
}
.mini-phone__buttons span::before {
    content: ''; position: absolute; left: 9px; top: 8px; width: 28px; height: 28px; border-radius: 9px; background: var(--paper-2);
}
.mini-phone__buttons span::after {
    content: ''; position: absolute; left: 48px; top: 19px; width: 42%; height: 8px; border-radius: 4px; background: var(--paper-2);
}
.mini-phone__hint { margin-top: 10px; padding: 0 22px; font-size: .68rem; color: #8b909b; line-height: 1.4; }
.mini-phone__url { margin-top: auto; padding: 14px; font-size: .64rem; color: var(--muted); }
.mini-phone__url strong { color: var(--ink); }
.preview-status { max-width: 260px; font-size: .82rem; color: #8c1d22; text-align: center; }

.page-head__actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.notice--ok { background: var(--lime-soft); border-color: #dcef9f; color: #3d4f00; }
.notice--ok .icon { color: #6a9a00; }
.notice--ok { margin: 0 0 20px; }
.notice--spaced { margin: 0 0 24px; }
.notice--action { align-items: center; }
.notice--action p { flex: 1; }
.notice--action .btn { flex-shrink: 0; }
.panel-card__footer { display: flex; justify-content: flex-end; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.panel-card__head p strong { color: var(--ink); }

.button-slots { display: grid; gap: 12px; }
.button-slot { border: 1px solid var(--line); border-radius: 18px; padding: 14px; background: var(--paper); }
.button-slot__head { display: flex; align-items: center; gap: 10px; }
.button-slot__num {
    flex-shrink: 0; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center;
    background: var(--white); border: 1px solid var(--line); font: 700 .82rem/1 var(--font-display);
}
.button-slot__type { flex: 1; min-width: 0; padding-top: 10px; padding-bottom: 10px; font-weight: 600; }
.button-slot__actions { display: flex; gap: 4px; }
.button-slot__fields { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; margin-top: 14px; }
.button-slot__fields .field + .field { margin-top: 0; }
.button-slot.is-empty { background: transparent; border-style: dashed; }
.button-slot.is-empty .button-slot__fields, .button-slot.is-empty [data-clear] { display: none; }
.button-slot.is-empty .button-slot__type { color: var(--muted); font-weight: 500; }
.button-slot.is-pdf .button-slot__value, .button-slot:not(.is-pdf) .button-slot__pdf { display: none; }
.button-slot:not(.is-wifi) .button-slot__senha { display: none; }
.button-slot__pdf .input[type="file"] { padding: 9px 10px; font-size: .85rem; }
.button-slot__file { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; font-size: .85rem; color: var(--muted); }
.button-slot__file .icon { width: 16px; height: 16px; flex-shrink: 0; }
.button-slot__file a { color: var(--ink); font-weight: 600; text-decoration: underline; }
.button-add {
    display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 12px; padding: 14px;
    border: 1.5px dashed var(--line); border-radius: 18px; background: transparent; color: var(--ink);
    font: 600 .95rem/1 var(--font-body); cursor: pointer;
}
.button-add:hover { border-color: var(--ink); }
.button-add[hidden] { display: none; }
.button-add .icon { width: 18px; height: 18px; }
.icon-btn {
    width: 38px; height: 38px; display: grid; place-items: center; padding: 0; cursor: pointer;
    border-radius: 10px; border: 1px solid var(--line); background: var(--white); color: var(--muted);
}
.icon-btn:hover { color: var(--ink); border-color: var(--ink); }
.icon-btn .icon { width: 17px; height: 17px; }

.mini-phone__screen--page { display: block; overflow-y: auto; text-align: center; }
.mini-phone__screen--page .cpage { min-height: 100%; }
.mini-phone__screen--page .cpage__cover { height: 100px; }
.mini-phone__screen--page .cpage__avatar { width: 70px; height: 70px; margin-top: -35px; border-radius: 22px; font-size: 1.3rem; border-width: 4px; }
.mini-phone__screen--page .cpage__name { font-size: 1.15rem; padding: 0 16px; }
.mini-phone__screen--page .cpage__meta { font-size: .72rem; padding: 0 16px; }
.mini-phone__screen--page .cpage__buttons { gap: 8px; padding: 16px 12px 0; }
.mini-phone__screen--page a.cbtn, .mini-phone__screen--page .cbtn summary { gap: 10px; padding: 8px 10px; font-size: .85rem; }
.mini-phone__screen--page .cbtn { border-radius: 14px; }
.mini-phone__screen--page .cbtn__icon { width: 32px; height: 32px; border-radius: 10px; }
.mini-phone__screen--page .cbtn__icon .icon { width: 18px; height: 18px; }
.mini-phone__screen--page .cpage__footer { padding: 18px 12px 14px; font-size: .62rem; }
.preview-note { max-width: 260px; font-size: .78rem; color: var(--muted); text-align: center; }

.form-actions {
    position: fixed; inset: auto 0 0; z-index: 30;
    background: rgba(245, 244, 238, .88); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
}
.form-actions__inner { display: flex; justify-content: flex-end; align-items: center; gap: 8px; padding-top: 14px; padding-bottom: 14px; }

.toast {
    position: fixed; left: 50%; bottom: 28px; z-index: 60; display: flex; align-items: center; gap: 10px;
    padding: 14px 20px; border-radius: 14px; background: var(--ink); color: var(--white);
    font-size: .92rem; font-weight: 500; box-shadow: 0 18px 40px rgba(13, 17, 23, .3);
    transform: translate(-50%, 140%); opacity: 0; transition: transform .3s ease, opacity .3s ease;
    max-width: calc(100vw - 32px);
}
.toast .icon { color: var(--lime); }
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }
.admin-body:has(.form-actions) .toast { bottom: 96px; }

@media (max-width: 1080px) {
    .company-form__layout { grid-template-columns: 1fr; }
    .company-form__preview { order: -1; }
    .preview-sticky { position: static; }
    .mini-phone { width: 240px; }
    .mini-phone__screen { height: 330px; }
}

@media (max-width: 900px) {
    .auth { grid-template-columns: 1fr; }
    .auth__brand { display: none; }
    .auth__mobile-logo { display: inline-block; }
}

@media (max-width: 720px) {
    .topbar__inner { gap: 16px; }
    .topbar__name, .topbar__nav { display: none; }
    .topbar__user { margin-left: auto; }
    .admin { padding-top: 28px; }
    .page-head { flex-direction: column; align-items: stretch; }
    .page-head .btn, .page-head .url-chip--lg { justify-content: center; }
    .stats { grid-template-columns: 1fr 1fr; }
    .stats .stat:first-child { grid-column: 1 / -1; }
    .toolbar { flex-direction: column; align-items: stretch; }
    .search { max-width: none; }
    .segmented { justify-content: space-between; }
    .segmented__item { flex: 1; text-align: center; }
    .company-grid { grid-template-columns: 1fr; }
    .field-row { grid-template-columns: 1fr; }
    .payment { grid-template-columns: 1fr; justify-items: center; text-align: center; }
    .payment__actions { justify-content: center; }
    .notice--action { flex-wrap: wrap; }
    .panel-card { padding: 22px 18px; }
    .input-prefix { flex-direction: column; }
    .input-prefix__label { padding: 10px 14px; border-right: 1.5px solid var(--line); border-bottom: 0; border-radius: 12px 12px 0 0; }
    .input-prefix .input { border-radius: 0 0 12px 12px; padding-left: 14px; }
    .form-actions__inner .btn--dark { flex: 1; }
    .page-head__actions { flex-direction: column; align-items: stretch; }
    .button-slot__fields { grid-template-columns: 1fr; }
    .button-slot__actions .icon-btn { width: 34px; height: 34px; }
    .panel-card__footer .btn { flex: 1; }
}
