.vzn-notes-app {
    --vzn-brown: #744720;
    --vzn-dark: #241d18;
    --vzn-green: #66752b;
    --vzn-cream: #f6f3eb;
    --vzn-panel: #fbfaf7;
    --vzn-border: #ded8ce;
    --vzn-muted: #6f6963;
    --vzn-warning: #a45d18;
    --vzn-danger: #9c4032;
    max-width: 1280px;
    margin: 18px auto 52px;
    padding: 0 16px;
    color: var(--vzn-dark);
    font-family: Inter, Arial, sans-serif;
    font-size: 15px;
}

.vzn-notes-app *,
.vzn-notes-app *::before,
.vzn-notes-app *::after { box-sizing: border-box; }

.vzn-notes-header,
.vzn-notes-panel,
.vzn-notes-session,
.vzn-notes-login,
.vzn-notes-customer-card,
.vzn-notes-date-card,
.vzn-notes-filter,
.vzn-notes-pending-panel,
.vzn-notes-today-panel {
    border: 1px solid var(--vzn-border);
    border-radius: 6px;
    background: #fff;
}

.vzn-notes-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 14px;
    margin-bottom: 10px;
    background: var(--vzn-panel);
}

.vzn-notes-header-main { min-width: 0; flex: 1; }

.vzn-notes-title-row {
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
}

.vzn-notes-title-row h1,
.vzn-notes-workbar h2,
.vzn-notes-person h2,
.vzn-notes-section-title h2,
.vzn-notes-login h1 {
    margin: 0;
    color: var(--vzn-dark);
    font-family: Inter, Arial, sans-serif;
    line-height: 1.2;
}

.vzn-notes-title-row h1 {
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -.015em;
}

.vzn-notes-professional-name {
    color: var(--vzn-muted);
    font-size: 13px;
    font-weight: 600;
}

.vzn-notes-eyebrow {
    display: inline-block;
    margin-bottom: 3px;
    color: var(--vzn-green);
    font-size: 9px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.vzn-notes-kpis {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
    color: var(--vzn-muted);
    font-size: 11px;
    flex-wrap: wrap;
}

.vzn-notes-kpis span { white-space: nowrap; }
.vzn-notes-kpis strong { color: var(--vzn-dark); font-size: 12px; }
.vzn-notes-kpis .is-warning strong { color: var(--vzn-warning); }

.vzn-notes-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.vzn-notes-header-actions a,
.vzn-notes-back,
.vzn-notes-link,
.vzn-notes-pending-head a {
    color: var(--vzn-brown);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.vzn-notes-header-actions a:hover,
.vzn-notes-back:hover,
.vzn-notes-link:hover,
.vzn-notes-pending-head a:hover { text-decoration: underline; }

.vzn-notes-pending-panel {
    margin-bottom: 10px;
    background: #fffdf8;
}

.vzn-notes-pending-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 11px;
    border-bottom: 1px solid #eee7dc;
}

.vzn-notes-pending-head > div {
    display: flex;
    align-items: baseline;
    gap: 9px;
    min-width: 0;
}

.vzn-notes-pending-head strong { font-size: 13px; }
.vzn-notes-pending-head span { color: var(--vzn-muted); font-size: 11px; }

.vzn-notes-pending-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.vzn-notes-pending-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 2px 8px;
    padding: 9px 11px;
    border-right: 1px solid #eee7dc;
    border-bottom: 1px solid #eee7dc;
    color: var(--vzn-dark);
    text-decoration: none;
}

.vzn-notes-pending-item:nth-child(3n) { border-right: 0; }
.vzn-notes-pending-item:hover { background: #faf7f0; }
.vzn-notes-pending-item strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.vzn-notes-pending-date { grid-column: 1 / -1; color: var(--vzn-muted); font-size: 10px; }

.vzn-notes-workbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 8px 0;
}

.vzn-notes-workbar h2 {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -.01em;
}

.vzn-notes-tabs {
    display: inline-flex;
    align-items: center;
    padding: 2px;
    border: 1px solid var(--vzn-border);
    border-radius: 5px;
    background: #f7f5f1;
}

.vzn-notes-tabs a {
    padding: 6px 10px;
    border-radius: 3px;
    color: var(--vzn-muted);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.vzn-notes-tabs a.is-active {
    background: #fff;
    color: var(--vzn-dark);
    box-shadow: 0 1px 2px rgba(0,0,0,.07);
}

.vzn-notes-filter {
    display: grid;
    grid-template-columns: minmax(210px, 1.25fr) 132px 132px 145px 145px auto;
    gap: 8px;
    align-items: end;
    padding: 9px;
    margin-bottom: 10px;
    background: var(--vzn-panel);
}

.vzn-notes-filter label,
.vzn-notes-auth-form label,
.vzn-notes-editor-label {
    display: block;
    margin-bottom: 4px;
    color: var(--vzn-dark);
    font-size: 11px;
    font-weight: 700;
}

.vzn-notes-filter input[type="search"],
.vzn-notes-filter input[type="date"],
.vzn-notes-filter select,
.vzn-notes-login input[type="text"],
.vzn-notes-login input[type="password"] {
    width: 100%;
    min-height: 36px;
    padding: 7px 9px;
    border: 1px solid #cfc8bd;
    border-radius: 4px;
    background: #fff;
    color: var(--vzn-dark);
    font: inherit;
    font-size: 13px;
}

.vzn-notes-filter-actions {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 36px;
}

.vzn-notes-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 6px 11px;
    border: 1px solid #b8b0a4;
    border-radius: 4px;
    background: #fff;
    color: var(--vzn-dark);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}

.vzn-notes-button:hover { background: #f5f3ef; border-color: #999084; }
.vzn-notes-button-primary { background: var(--vzn-green); border-color: var(--vzn-green); color: #fff; }
.vzn-notes-button-primary:hover { background: #596624; border-color: #596624; color: #fff; }

.vzn-notes-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 7px 0;
    color: var(--vzn-muted);
    font-size: 11px;
}
.vzn-notes-list-head strong { color: var(--vzn-dark); font-size: 12px; }

.vzn-notes-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.vzn-notes-customer-card {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 10px;
}

.vzn-notes-avatar {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 50%;
    background: #eee5db;
    color: var(--vzn-brown);
    font-size: 12px;
    font-weight: 800;
}

.vzn-notes-avatar-large { width: 46px; height: 46px; flex-basis: 46px; font-size: 14px; }

.vzn-notes-customer-body h3,
.vzn-notes-date-body h3,
.vzn-notes-session-body h3,
.vzn-notes-panel-title h3 {
    margin: 0 0 3px;
    color: var(--vzn-dark);
    font-family: Inter, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 700;
}

.vzn-notes-customer-body p,
.vzn-notes-date-body p,
.vzn-notes-session-body p,
.vzn-notes-panel p,
.vzn-notes-section-title p,
.vzn-notes-person p,
.vzn-notes-form-footer p,
.vzn-notes-login p {
    margin: 0;
    color: var(--vzn-muted);
    font-size: 12px;
    line-height: 1.45;
}

.vzn-notes-customer-body small,
.vzn-notes-session-body small,
.vzn-notes-form-footer small {
    display: block;
    margin-top: 3px;
    color: #8b847c;
    font-size: 10px;
}

.vzn-notes-customer-head { margin: 8px 0 10px; }
.vzn-notes-person { display: flex; align-items: center; gap: 9px; margin-top: 7px; }
.vzn-notes-person h2 { font-size: 18px; font-weight: 700; }

.vzn-notes-panel,
.vzn-notes-session { padding: 12px; }
.vzn-notes-panel { margin-bottom: 10px; }

.vzn-notes-panel-title,
.vzn-notes-session-meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}
.vzn-notes-panel-title h3 { font-size: 15px; }

.vzn-notes-section-title { margin: 14px 0 6px; }
.vzn-notes-section-title h2 { font-size: 16px; font-weight: 700; }

.vzn-notes-timeline,
.vzn-notes-date-list { display: grid; gap: 7px; }

.vzn-notes-session.is-focus {
    border-color: #98a260;
    box-shadow: inset 3px 0 0 var(--vzn-green);
}

.vzn-notes-date-box {
    min-width: 98px;
    padding: 7px 9px;
    border-radius: 4px;
    background: var(--vzn-cream);
    text-align: center;
    flex: 0 0 auto;
}
.vzn-notes-date-box strong,
.vzn-notes-date-box span { display: block; }
.vzn-notes-date-box strong { color: var(--vzn-dark); font-size: 11px; }
.vzn-notes-date-box span { margin-top: 2px; color: var(--vzn-green); font-size: 11px; font-weight: 700; }

.vzn-notes-session-body,
.vzn-notes-date-body { min-width: 0; flex: 1; }
.vzn-notes-preview { margin-top: 5px !important; }

.vzn-notes-inline-title {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    margin-bottom: 2px;
}

.vzn-notes-version,
.vzn-notes-status,
.vzn-notes-save-state {
    display: inline-flex;
    align-items: center;
    width: max-content;
    max-width: 100%;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 9px;
    font-weight: 800;
    white-space: nowrap;
}

.vzn-notes-version { background: #edf0df; color: #596624; }
.vzn-status-missing { background: #f4e7e2; color: #8a493c; }
.vzn-status-draft { background: #fff0d8; color: #87530f; }
.vzn-status-autosave { background: #e9eef8; color: #46607e; }
.vzn-status-finalized { background: #e9f0df; color: #516522; }
.vzn-status-future { background: #eef0f2; color: #626a70; }
.vzn-status-amendment { background: #eee6f4; color: #68467c; }

.vzn-notes-editor {
    margin-top: 9px;
    padding-top: 8px;
    border-top: 1px solid #ece8e2;
}

.vzn-notes-editor > summary,
.vzn-notes-revisions > summary {
    color: var(--vzn-brown);
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.vzn-notes-form {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin-top: 9px;
}

.vzn-notes-editor-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    margin-bottom: 5px;
}

.vzn-notes-editor-label { margin: 0; }

.vzn-notes-save-state { background: #f2f0ec; color: var(--vzn-muted); }
.vzn-notes-save-state.is-unsaved { background: #fff0d8; color: #87530f; }
.vzn-notes-save-state.is-saving { background: #edf0f6; color: #50647b; }
.vzn-notes-save-state.is-autosaved { background: #e9eef8; color: #46607e; }
.vzn-notes-save-state.is-finalized { background: #e9f0df; color: #516522; }
.vzn-notes-save-state.is-draft { background: #fff0d8; color: #87530f; }
.vzn-notes-save-state.is-error { background: #f7e4e1; color: #8f382d; }

.vzn-notes-form textarea.vzn-notes-textarea {
    display: block !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 100% !important;
    min-height: 340px;
    margin: 0 !important;
    resize: vertical;
    padding: 13px 14px;
    border: 1px solid #bdb5aa;
    border-radius: 4px;
    background: #fff;
    color: var(--vzn-dark);
    font-family: Inter, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.65;
}

.vzn-notes-permanent .vzn-notes-form textarea.vzn-notes-textarea { min-height: 360px; }

.vzn-notes-form textarea.vzn-notes-textarea:focus,
.vzn-notes-filter input:focus,
.vzn-notes-filter select:focus,
.vzn-notes-login input:focus {
    outline: 2px solid rgba(102, 117, 43, .16);
    border-color: #7d8946;
}

.vzn-notes-form-footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-top: 8px;
}

.vzn-notes-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    flex-wrap: wrap;
}

.vzn-notes-revisions {
    margin-top: 10px;
    padding-top: 9px;
    border-top: 1px dashed #d8d2c8;
}
.vzn-notes-revision-list { display: grid; gap: 6px; margin-top: 7px; }
.vzn-notes-revision-list article { padding: 8px 9px; border-radius: 3px; background: var(--vzn-cream); }
.vzn-notes-revision-list article > div { display: flex; align-items: center; justify-content: flex-start; gap: 8px; flex-wrap: wrap; }
.vzn-notes-revision-list article > div small { margin-left: auto; }
.vzn-notes-revision-list p { margin: 5px 0 0; font-size: 11px; line-height: 1.45; }

.vzn-notes-date-card {
    display: grid;
    grid-template-columns: 98px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 9px;
}

.vzn-notes-notice {
    margin: 8px 0;
    padding: 9px 11px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
}
.vzn-notes-notice-success { background: #eef3df; color: #425018; }
.vzn-notes-notice-error { background: #fff0ed; color: #8b2a1a; }
.vzn-notes-notice-info { background: var(--vzn-cream); color: var(--vzn-brown); }

.vzn-notes-pagination {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    font-size: 11px;
}
.vzn-notes-pagination > a:last-child { justify-self: end; }
.vzn-notes-pagination a { color: var(--vzn-brown); font-weight: 700; text-decoration: none; }
.vzn-notes-pagination div { display: flex; gap: 4px; }
.vzn-notes-pagination div a {
    display: grid;
    place-items: center;
    min-width: 28px;
    height: 28px;
    border: 1px solid var(--vzn-border);
    border-radius: 3px;
    background: #fff;
}
.vzn-notes-pagination div a.is-active { background: var(--vzn-green); border-color: var(--vzn-green); color: #fff; }

.vzn-notes-login-shell { display: grid; place-items: center; min-height: 70vh; }
.vzn-notes-login { width: min(100%, 480px); padding: 22px; }
.vzn-notes-login h1 { margin: 0 0 8px; font-size: 23px; font-weight: 700; }
.vzn-notes-auth-form { margin-top: 16px; }
.vzn-notes-auth-form p { margin: 0 0 11px; }
.vzn-notes-auth-remember label { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; }
.vzn-notes-login-button { width: 100%; }
.vzn-notes-login-help { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--vzn-border); }
.vzn-notes-login-help a { color: var(--vzn-brown); font-size: 11px; font-weight: 700; text-decoration: none; }

@media (max-width: 1050px) {
    .vzn-notes-filter { grid-template-columns: minmax(220px, 1fr) 132px 132px 145px 145px; }
    .vzn-notes-filter-actions { grid-column: 1 / -1; }
    .vzn-notes-pending-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vzn-notes-pending-item:nth-child(3n) { border-right: 1px solid #eee7dc; }
    .vzn-notes-pending-item:nth-child(2n) { border-right: 0; }
}

@media (max-width: 900px) {
    .vzn-notes-grid { grid-template-columns: 1fr; }
    .vzn-notes-filter { grid-template-columns: 1fr 1fr; }
    .vzn-notes-filter-search { grid-column: 1 / -1; }
    .vzn-notes-filter-actions { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
    .vzn-notes-app { margin-top: 10px; padding: 0 9px; }
    .vzn-notes-header { align-items: flex-start; flex-direction: column; }
    .vzn-notes-header-actions { width: 100%; justify-content: flex-start; }
    .vzn-notes-workbar { align-items: flex-start; flex-direction: column; }
    .vzn-notes-tabs { width: 100%; }
    .vzn-notes-tabs a { flex: 1; text-align: center; }
    .vzn-notes-pending-list { grid-template-columns: 1fr; }
    .vzn-notes-pending-item { border-right: 0 !important; }
    .vzn-notes-customer-card { grid-template-columns: 40px 1fr; }
    .vzn-notes-customer-card .vzn-notes-button { grid-column: 1 / -1; }
    .vzn-notes-session-meta { display: grid; grid-template-columns: auto 1fr; }
    .vzn-notes-session-meta .vzn-notes-version { grid-column: 1 / -1; }
    .vzn-notes-date-card { grid-template-columns: 88px 1fr; }
    .vzn-notes-date-card .vzn-notes-button { grid-column: 1 / -1; width: 100%; }
    .vzn-notes-date-box { min-width: 88px; }
}

@media (max-width: 520px) {
    .vzn-notes-filter { grid-template-columns: 1fr; }
    .vzn-notes-filter-search,
    .vzn-notes-filter-actions { grid-column: auto; }
    .vzn-notes-filter-actions { flex-wrap: wrap; }
    .vzn-notes-title-row { gap: 5px 10px; }
    .vzn-notes-title-row h1 { font-size: 19px; }
    .vzn-notes-person h2 { font-size: 17px; }
    .vzn-notes-panel,
    .vzn-notes-session { padding: 10px; }
    .vzn-notes-editor-toolbar { align-items: flex-start; flex-direction: column; }
    .vzn-notes-form textarea.vzn-notes-textarea,
    .vzn-notes-permanent .vzn-notes-form textarea.vzn-notes-textarea { min-height: 270px; }
    .vzn-notes-form-footer { flex-direction: column; }
    .vzn-notes-form-actions,
    .vzn-notes-form-actions .vzn-notes-button { width: 100%; }
    .vzn-notes-pagination { grid-template-columns: 1fr 1fr; }
    .vzn-notes-pagination div { grid-column: 1 / -1; grid-row: 1; justify-content: center; }
    .vzn-notes-pending-head > div { align-items: flex-start; flex-direction: column; gap: 2px; }
}

/* 1.3.0 — painel diário, tags, adendos e conflitos de edição */
.vzn-notes-today-panel {
    margin-bottom: 10px;
    background: #fff;
}

.vzn-notes-today-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 11px;
    border-bottom: 1px solid #ece8e2;
    background: #faf9f6;
}

.vzn-notes-today-head > div {
    display: flex;
    align-items: baseline;
    gap: 9px;
    flex-wrap: wrap;
    min-width: 0;
}

.vzn-notes-today-head strong {
    font-size: 13px;
}

.vzn-notes-today-head > div > span:not(.vzn-notes-eyebrow) {
    color: var(--vzn-muted);
    font-size: 11px;
}

.vzn-notes-today-head > a {
    color: var(--vzn-brown);
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.vzn-notes-today-list {
    display: grid;
}

.vzn-notes-today-row {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 37px;
    padding: 6px 11px;
    border-bottom: 1px solid #f0ece6;
    color: var(--vzn-dark);
    text-decoration: none;
}

.vzn-notes-today-row:last-child {
    border-bottom: 0;
}

.vzn-notes-today-row:hover {
    background: #fbfaf7;
}

.vzn-notes-today-row time {
    color: var(--vzn-green);
    font-size: 12px;
    font-weight: 800;
}

.vzn-notes-today-row strong {
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vzn-notes-tags {
    width: 100%;
    margin: 8px 0 0;
    padding: 0;
    border: 0;
}

.vzn-notes-tags legend {
    margin-bottom: 5px;
    padding: 0;
    color: var(--vzn-muted);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.vzn-notes-tags-options,
.vzn-notes-tag-chips {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.vzn-note-tag {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    margin: 0 !important;
    padding: 4px 7px;
    border: 1px solid #d8d2c8;
    border-radius: 3px;
    background: #faf9f6;
    color: var(--vzn-muted) !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    cursor: pointer;
}

.vzn-note-tag:has(input:checked) {
    border-color: #9da872;
    background: #f0f3e5;
    color: #526020 !important;
}

.vzn-note-tag input {
    width: 13px;
    height: 13px;
    margin: 0;
}

.vzn-notes-tag-chips {
    margin-top: 5px;
}

.vzn-notes-tag-chips span {
    padding: 2px 5px;
    border: 1px solid #ddd7cc;
    border-radius: 3px;
    background: #faf8f3;
    color: #6f665c;
    font-size: 9px;
    font-weight: 700;
}

.vzn-notes-conflict {
    margin-bottom: 9px;
    padding: 9px 10px;
    border: 1px solid #d9a89d;
    border-radius: 4px;
    background: #fff5f2;
    color: #6f3026;
    font-size: 11px;
}

.vzn-notes-conflict strong {
    display: block;
    margin-bottom: 3px;
    font-size: 12px;
}

.vzn-notes-conflict p {
    margin: 0;
    color: #7e4a40;
    font-size: 11px;
    line-height: 1.45;
}

.vzn-notes-conflict details {
    margin-top: 7px;
}

.vzn-notes-conflict summary {
    font-weight: 800;
    cursor: pointer;
}

.vzn-notes-conflict-current {
    max-height: 230px;
    margin-top: 7px;
    overflow: auto;
    padding: 8px 9px;
    border: 1px solid #ead7d1;
    border-radius: 3px;
    background: #fff;
    color: var(--vzn-dark);
    line-height: 1.55;
    white-space: normal;
}

@media (max-width: 1050px) {
    .vzn-notes-filter-tag { grid-column: auto; }
}

@media (max-width: 700px) {
    .vzn-notes-today-head {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .vzn-notes-today-row {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .vzn-notes-today-row .vzn-notes-status {
        grid-column: 2;
    }
}

.vzn-notes-today-list {
    max-height: 240px;
    overflow: auto;
}

/* Password visibility control - v1.3.2 */
.vzn-notes-password-field {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
}

/*
 * Alguns temas definem max-width para inputs de senha. O width:100% isolado
 * não vence essa limitação; por isso o max-width também é removido aqui.
 */
.vzn-notes-login .vzn-notes-password-field input#vzn_user_pass,
.vzn-notes-login .vzn-notes-password-field input[type="password"],
.vzn-notes-login .vzn-notes-password-field input[type="text"] {
    display: block !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 36px !important;
    padding: 7px 46px 7px 9px !important;
    margin: 0 !important;
}

/* O botão ocupa a borda direita do próprio campo, e não da linha/formulário. */
.vzn-notes-password-toggle {
    position: absolute !important;
    top: 1px !important;
    right: 1px !important;
    bottom: 1px !important;
    z-index: 10 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: auto !important;
    min-width: 38px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 3px 3px 0 !important;
    background: #fff !important;
    color: #6e6258 !important;
    transform: none !important;
    cursor: pointer !important;
    box-shadow: none !important;
    line-height: 1 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

.vzn-notes-password-toggle:hover,
.vzn-notes-password-toggle:focus-visible {
    background: #f2eee8 !important;
    color: var(--vzn-brown) !important;
    outline: none !important;
}

.vzn-notes-password-toggle:focus-visible {
    box-shadow: inset 0 0 0 2px rgba(111, 127, 44, .28) !important;
}

.vzn-notes-eye {
    display: block;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.vzn-notes-eye-closed {
    display: none;
}

.vzn-notes-password-toggle.is-visible .vzn-notes-eye-open {
    display: none;
}

.vzn-notes-password-toggle.is-visible .vzn-notes-eye-closed {
    display: block;
}

/*
 * Esconde controles nativos conhecidos de senha/autofill. O botão branco
 * acima também cobre a faixa direita do input, evitando que um glifo nativo
 * residual apareça junto do SVG próprio.
 */
.vzn-notes-password-field input::-ms-reveal,
.vzn-notes-password-field input::-ms-clear {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.vzn-notes-password-field input::-webkit-credentials-auto-fill-button,
.vzn-notes-password-field input::-webkit-caps-lock-indicator {
    visibility: hidden !important;
    display: none !important;
    pointer-events: none !important;
}


/* Password conflict guard - v1.3.3
 * Há um script global no site que embrulha campos password em uma DIV e injeta
 * um SPAN FontAwesome. Estas regras neutralizam o elemento enquanto o JS do
 * plugin restaura a estrutura original.
 */
.vzn-notes-password-field > div {
    position: static !important;
    display: contents !important;
    width: auto !important;
    max-width: none !important;
}

.vzn-notes-password-field > div > span,
.vzn-notes-password-field [style*="FontAwesome"],
.vzn-notes-password-field [style*="font-family: FontAwesome"],
.vzn-notes-password-field [style*="font-family:FontAwesome"] {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.vzn-notes-password-field > #vzn_user_pass {
    width: 100% !important;
    max-width: none !important;
}

/* 1.4.0 — identificação e sessão profissional independente */
.vzn-notes-professional-identity {
    display: flex;
    align-items: baseline;
    gap: 7px;
    margin-left: auto;
    color: var(--vzn-muted);
    white-space: nowrap;
}

.vzn-notes-professional-identity small {
    color: #918a82;
    font-size: 10px;
    font-weight: 600;
}

.vzn-notes-login-help span {
    color: var(--vzn-muted);
    font-size: 11px;
    line-height: 1.45;
}

.vzn-notes-header-actions {
    flex-wrap: wrap;
}

@media (max-width: 700px) {
    .vzn-notes-professional-identity {
        width: 100%;
        margin-left: 0;
        justify-content: flex-start;
    }
}

/* 1.5.0 — documentação, integridade e linha do tempo */
.vzn-notes-customer-head-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.vzn-notes-document-quick,
.vzn-notes-record-meta,
.vzn-notes-export-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.vzn-notes-button-small {
    min-height: 28px;
    padding: 4px 8px;
    font-size: 10px;
}

.vzn-notes-record-meta {
    justify-content: flex-end;
    flex: 0 0 auto;
    max-width: 42%;
}

.vzn-notes-mini-link {
    color: var(--vzn-brown);
    font-size: 10px;
    font-weight: 800;
    text-decoration: none;
}

.vzn-notes-mini-link:hover {
    text-decoration: underline;
}

.vzn-notes-integrity {
    display: inline-flex;
    align-items: center;
    width: max-content;
    max-width: 100%;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 9px;
    font-weight: 800;
    white-space: nowrap;
}

.vzn-notes-integrity.is-ok {
    background: #edf3e5;
    color: #4f6422;
}

.vzn-notes-integrity.is-error {
    background: #fff0ed;
    color: #8b2a1a;
}

.vzn-notes-export-box {
    margin-top: 10px;
    border: 1px solid var(--vzn-border);
    border-radius: 4px;
    background: #fbfaf7;
}

.vzn-notes-export-box > summary {
    padding: 8px 10px;
    color: var(--vzn-brown);
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.vzn-notes-export-form {
    display: grid;
    grid-template-columns: 145px 145px minmax(280px, 1fr);
    gap: 8px 10px;
    padding: 10px;
    border-top: 1px solid var(--vzn-border);
}

.vzn-notes-export-form > div > label,
.vzn-notes-export-form > label {
    display: block;
    margin-bottom: 4px;
    color: var(--vzn-dark);
    font-size: 10px;
    font-weight: 800;
}

.vzn-notes-export-form input[type="date"] {
    width: 100%;
    min-height: 34px;
    box-sizing: border-box;
    padding: 6px 8px;
    border: 1px solid #cfc8bd;
    border-radius: 4px;
    background: #fff;
    color: var(--vzn-dark);
    font: inherit;
    font-size: 12px;
}

.vzn-notes-export-options {
    display: flex;
    align-items: center;
    gap: 7px 12px;
    flex-wrap: wrap;
    padding-top: 18px;
}

.vzn-notes-export-options label {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    margin: 0 !important;
    color: var(--vzn-muted) !important;
    font-size: 10px !important;
    font-weight: 700 !important;
}

.vzn-notes-export-actions {
    grid-column: 1 / -1;
}

.vzn-notes-export-form > small {
    grid-column: 1 / -1;
    color: var(--vzn-muted);
    font-size: 9px;
}

/* Linha cronológica mais legível sem aumentar muito o uso vertical. */
.vzn-notes-timeline {
    position: relative;
    padding-left: 18px;
}

.vzn-notes-timeline::before {
    content: "";
    position: absolute;
    top: 11px;
    bottom: 11px;
    left: 5px;
    width: 1px;
    background: #d8d2c8;
}

.vzn-notes-timeline .vzn-notes-session {
    position: relative;
}

.vzn-notes-timeline .vzn-notes-session::before {
    content: "";
    position: absolute;
    top: 22px;
    left: -18px;
    width: 9px;
    height: 9px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--vzn-green);
    box-shadow: 0 0 0 1px #a9b17e;
}

.vzn-notes-timeline .vzn-notes-session.is-focus::before {
    width: 11px;
    height: 11px;
    left: -19px;
    background: var(--vzn-brown);
}

@media (max-width: 760px) {
    .vzn-notes-customer-head-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .vzn-notes-document-quick {
        width: 100%;
    }

    .vzn-notes-document-quick .vzn-notes-button {
        flex: 1;
    }

    .vzn-notes-export-form {
        grid-template-columns: 1fr 1fr;
    }

    .vzn-notes-export-options {
        grid-column: 1 / -1;
        padding-top: 2px;
    }

    .vzn-notes-record-meta {
        grid-column: 1 / -1;
        justify-content: flex-start;
        max-width: none;
    }
}

@media (max-width: 520px) {
    .vzn-notes-export-form {
        grid-template-columns: 1fr;
    }

    .vzn-notes-export-options,
    .vzn-notes-export-actions,
    .vzn-notes-export-form > small {
        grid-column: auto;
    }

    .vzn-notes-export-actions .vzn-notes-button {
        flex: 1 1 42%;
    }

    .vzn-notes-timeline {
        padding-left: 14px;
    }

    .vzn-notes-timeline::before {
        left: 3px;
    }

    .vzn-notes-timeline .vzn-notes-session::before {
        left: -15px;
    }

    .vzn-notes-timeline .vzn-notes-session.is-focus::before {
        left: -16px;
    }
}

/* Availability */
.vzn-availability-card{margin:0 0 22px;padding:22px;border:1px solid var(--vzn-border,#ded8cf);border-radius:12px;background:#fff;box-shadow:0 8px 26px rgba(61,47,34,.05)}
.vzn-availability-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:16px}
.vzn-availability-head h2{margin:3px 0 5px;font-size:22px}
.vzn-availability-head p{margin:0;max-width:720px;color:var(--vzn-muted,#756c64);font-size:13px;line-height:1.55}
.vzn-location-badge{display:grid;gap:2px;min-width:160px;padding:10px 12px;border-radius:8px;background:#f6f3ed;border:1px solid #e5dfd5}
.vzn-location-badge small{color:#81786f;font-size:10px;text-transform:uppercase;letter-spacing:.07em}
.vzn-location-badge strong{font-size:13px;color:#403a34}
.vzn-schedule-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.vzn-schedule-option{display:flex;align-items:flex-start;gap:10px;padding:13px;border:1px solid #ded8cf;border-radius:8px;cursor:pointer;background:#fff}
.vzn-schedule-option:has(input:checked){border-color:#99a66c;background:#fafbef}
.vzn-schedule-option input{margin-top:3px;accent-color:var(--vzn-green,#66752d)}
.vzn-schedule-option span{display:grid;gap:3px}.vzn-schedule-option strong{font-size:13px}.vzn-schedule-option small{color:#756c64;line-height:1.4}
.vzn-schedule-grid{display:grid;gap:7px;margin-top:12px;padding:13px;border:1px solid #e5dfd5;border-radius:8px;background:#fcfbf8}
.vzn-schedule-grid[hidden]{display:none!important}
.vzn-schedule-row{display:grid;grid-template-columns:minmax(130px,1fr) minmax(120px,.6fr) minmax(120px,.6fr);gap:10px;align-items:end;padding:7px 0;border-bottom:1px solid #eee8df}
.vzn-schedule-row:last-child{border-bottom:0}
.vzn-schedule-row>label:not(.vzn-schedule-day){display:grid;gap:4px;color:#81786f;font-size:10px}
.vzn-schedule-row input[type=time]{width:100%;box-sizing:border-box;padding:9px;border:1px solid #d7d0c6;border-radius:6px;background:#fff}
.vzn-schedule-day{display:flex;gap:8px;align-items:center;min-height:40px;font-weight:700;font-size:13px}.vzn-schedule-day input{accent-color:var(--vzn-green,#66752d)}
.vzn-availability-actions{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:14px}.vzn-availability-actions small{max-width:650px;color:#756c64;line-height:1.45}
.vzn-notes-notice.is-success{margin:0 0 12px;padding:10px 12px;border-radius:7px;background:#f1f6e4;color:#526020;border:1px solid #dbe7b6}
@media(max-width:760px){.vzn-availability-head,.vzn-availability-actions{flex-direction:column}.vzn-location-badge{width:100%;box-sizing:border-box}.vzn-schedule-options{grid-template-columns:1fr}.vzn-schedule-row{grid-template-columns:1fr 1fr}.vzn-schedule-day{grid-column:1/-1}}
.vzn-special-schedule{margin-top:20px;padding-top:18px;border-top:1px solid #e7e0d7}.vzn-special-head h3{margin:0 0 4px;font-size:16px}.vzn-special-head p{margin:0 0 12px;color:#756c64;font-size:12px}.vzn-special-form{display:grid;grid-template-columns:minmax(140px,1fr) minmax(170px,1fr) minmax(110px,.65fr) minmax(110px,.65fr) auto;gap:9px;align-items:end}.vzn-special-form>label{display:grid;gap:4px;color:#81786f;font-size:10px}.vzn-special-form input[type=date],.vzn-special-form input[type=time]{width:100%;box-sizing:border-box;padding:9px;border:1px solid #d7d0c6;border-radius:6px;background:#fff}.vzn-special-enabled{display:flex!important;flex-direction:row!important;align-items:center!important;gap:8px!important;min-height:39px;padding:0 4px;font-size:12px!important;color:#4a433d!important}.vzn-special-enabled input{accent-color:var(--vzn-green,#66752d)}.vzn-special-list{display:grid;margin-top:12px;border-top:1px solid #eee8df}.vzn-special-list>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 2px;border-bottom:1px solid #eee8df}.vzn-special-list>div>span{display:grid;gap:2px}.vzn-special-list strong{font-size:12px}.vzn-special-list small{color:#756c64}.vzn-special-list form{margin:0}.vzn-link-danger{border:0;background:transparent;color:#934a40;font-weight:700;font-size:11px;cursor:pointer;padding:6px}.vzn-link-danger:hover{text-decoration:underline}@media(max-width:900px){.vzn-special-form{grid-template-columns:1fr 1fr}.vzn-special-form .vzn-notes-button{grid-column:1/-1}}@media(max-width:520px){.vzn-special-form{grid-template-columns:1fr}.vzn-special-form .vzn-notes-button{grid-column:auto}}


/* Google Meet - gestão pela Área do Profissional */
.vzn-meet-card{
    margin:0 0 10px;
    padding:18px;
    border:1px solid var(--vzn-border,#ded8ce);
    border-radius:8px;
    background:#fff;
    box-shadow:0 8px 24px rgba(36,29,24,.04);
    scroll-margin-top:20px;
}
.vzn-meet-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}
.vzn-meet-head h2{margin:0 0 5px;color:var(--vzn-dark,#241d18);font-size:18px;line-height:1.25}
.vzn-meet-head p{max-width:760px;margin:0;color:var(--vzn-muted,#6f6963);font-size:12px;line-height:1.55}
.vzn-meet-status{display:inline-flex;align-items:center;gap:6px;flex:0 0 auto;padding:6px 10px;border-radius:999px;font-size:10px;font-weight:800;letter-spacing:.03em}
.vzn-meet-status::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}
.vzn-meet-status.is-connected{background:#eef4e4;color:#536326}
.vzn-meet-status.is-disconnected{background:#f4f0eb;color:#7c6f63}
.vzn-meet-body{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:15px;padding-top:15px;border-top:1px solid #eee8df}
.vzn-meet-account{display:grid;gap:3px;min-width:0}
.vzn-meet-account small{color:#81786f;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.06em}
.vzn-meet-account strong{color:var(--vzn-dark,#241d18);font-size:14px;overflow-wrap:anywhere}
.vzn-meet-account span{color:var(--vzn-muted,#6f6963);font-size:11px;line-height:1.45}
.vzn-meet-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;flex:0 0 auto}
.vzn-meet-actions form{margin:0}
.vzn-meet-disconnect{border:0;background:transparent;color:var(--vzn-danger,#9c4032);padding:8px 6px;font-size:11px;font-weight:800;cursor:pointer}
.vzn-meet-disconnect:hover{text-decoration:underline}
.vzn-meet-help{margin:12px 0 0;color:#81786f;font-size:10px;line-height:1.5}
.vzn-meet-message{display:grid;gap:3px;margin-top:14px;padding:12px 13px;border-radius:7px;font-size:11px;line-height:1.45}
.vzn-meet-message.is-warning{background:#fff8e8;border:1px solid #ead9ad;color:#6e5418}
.vzn-meet-message strong{font-size:12px}
@media(max-width:760px){
    .vzn-meet-head,.vzn-meet-body{flex-direction:column}
    .vzn-meet-status{align-self:flex-start}
    .vzn-meet-actions{width:100%;justify-content:flex-start}
    .vzn-meet-actions .vzn-notes-button{width:100%;text-align:center}
    .vzn-meet-actions form:first-child{width:100%}
    .vzn-meet-actions form:first-child .vzn-notes-button{width:100%}
}


/* 1.8.0 - disponibilidade semanal com múltiplas faixas no mesmo dia */
.vzn-schedule-row{
    display:block;
    padding:11px 0;
}
.vzn-schedule-day-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-bottom:9px;
}
.vzn-schedule-day{min-height:auto}
.vzn-schedule-add,
.vzn-schedule-remove{
    appearance:none;
    border:1px solid #d7d0c6;
    border-radius:6px;
    background:#fff;
    color:var(--vzn-green,#66752d);
    font:inherit;
    font-size:11px;
    font-weight:800;
    line-height:1.2;
    cursor:pointer;
    padding:8px 10px;
}
.vzn-schedule-add:hover,
.vzn-schedule-remove:hover{
    border-color:#a9b17b;
    background:#fafbef;
}
.vzn-schedule-remove{
    color:#8a544a;
    min-height:40px;
    align-self:end;
}
.vzn-schedule-remove:disabled{
    opacity:.38;
    cursor:not-allowed;
    background:#f7f4ef;
    border-color:#e4ded7;
}
.vzn-schedule-intervals{
    display:grid;
    gap:7px;
}
.vzn-schedule-interval{
    display:grid;
    grid-template-columns:minmax(120px,1fr) minmax(120px,1fr) auto;
    gap:9px;
    align-items:end;
    padding:8px 9px;
    border:1px solid #ebe5dd;
    border-radius:7px;
    background:#fff;
}
.vzn-schedule-interval>label{
    display:grid;
    gap:4px;
    color:#81786f;
    font-size:10px;
}
.vzn-schedule-interval input[type=time]{
    width:100%;
    box-sizing:border-box;
    padding:9px;
    border:1px solid #d7d0c6;
    border-radius:6px;
    background:#fff;
}
.vzn-schedule-interval input:invalid{
    border-color:#b75b4e;
    box-shadow:0 0 0 2px rgba(183,91,78,.10);
}
@media(max-width:760px){
    .vzn-schedule-day-head{align-items:flex-start}
    .vzn-schedule-interval{grid-template-columns:1fr 1fr}
    .vzn-schedule-remove{grid-column:1/-1;justify-self:start;min-height:34px}
}
@media(max-width:520px){
    .vzn-schedule-day-head{display:grid}
    .vzn-schedule-add{justify-self:start}
    .vzn-schedule-interval{grid-template-columns:1fr}
    .vzn-schedule-remove{grid-column:auto}
}
