/* Portal v3 shell styles. Loaded on "/" by src/portal/v3/frame.js (html.tp3). Used by portal.js (top bar, drawer menu,
 * sub-tabs, Érdeklődők toolbar and Folyamat board, password dialog) and shared by every view-<name>.css
 * (page column, card, tag, list rows). It also restyles the panel's own parts (src/lead-panel/panel.html): the login page,
 * the lead and schedule dialogs, the list table and the calendar.
 * Navigation: one 56 px row with the menu button top-left, no logo, the view title and its sub-tabs.
 * Folyamat is a board: wide columns, sideways scroll with a hint and a right fade, the page
 * scrolls down. Colours: the client brand variables from src/brand.js. */
html.tp3:not(.tp3-ready) #app{visibility:hidden}
.tp3 #app>.bar,.tp3 #onboarding-guide,.tp3 .lead-views{display:none!important}
.tp3{--ease:cubic-bezier(.16,1,.3,1);--card:14px}
/* Signed-in load (frame.js tp3-auth): the bar's place is painted until portal.js is ready, Weboldal (tp3-web) has no bar. */
html.tp3-auth:not(.tp3-ready):not(.tp3-web) body::before{content:"";position:fixed;inset:0 0 auto;z-index:29;height:56px;background:var(--navy)}

/* Top bar: one row, 56 px */
.tp3-bar{position:sticky;top:0;z-index:30;display:flex;align-items:stretch;height:56px;padding-right:20px;background:var(--navy);color:#fff;flex:none}
.tp3-burger{position:relative;display:grid;place-items:center;flex:none;width:56px;height:56px;min-height:0;padding:0;border:0;border-radius:0;background:none;color:#fff}
.tp3-burger::before{content:"";position:absolute;inset:8px;border-radius:10px;background:rgba(255,255,255,.1);transition:background 120ms var(--ease)}
.tp3-burger:hover{background:none}
.tp3-burger:hover::before{background:rgba(255,255,255,.2)}
.tp3-burger:focus-visible{outline:none}.tp3-burger:focus-visible::before{outline:2px solid var(--tab-accent);outline-offset:0;background:rgba(255,255,255,.2)}
.tp3-web .tp3-burger:focus-visible::before{outline-color:var(--teal);background:var(--subtle)}
/* Screen-reader-only text: the Weboldal view's h1. */
.tp3-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.tp3-burger .tp3-ico{position:relative;width:22px;height:22px}
.tp3-title{display:flex;align-items:center;margin:0 18px 0 6px;color:#fff;font-size:17px;font-weight:700;letter-spacing:-.01em;white-space:nowrap}
.tp3-tabs{display:flex;align-items:stretch;gap:2px}
.tp3-tabs::before{content:"";align-self:center;width:1px;height:24px;margin-right:10px;background:rgba(255,255,255,.2)}
.tp3-tabs button{position:relative;display:flex;align-items:center;gap:8px;min-height:0;height:56px;padding:0 14px;border:0;border-radius:0;background:none;color:rgba(255,255,255,.72);font-size:15px;font-weight:600}
.tp3-tabs button:hover{background:rgba(255,255,255,.06);color:#fff}
.tp3-tabs button[aria-current=true],.tp3-tabs button[aria-current=true]:hover{background:rgba(255,255,255,.08);color:#fff}
.tp3-tabs button[aria-current=true]::after{content:"";position:absolute;left:10px;right:10px;bottom:0;height:3px;border-radius:3px 3px 0 0;background:var(--tab-accent)}
.tp3-tabs button:focus-visible{outline:2px solid var(--tab-accent);outline-offset:-6px;border-radius:10px}
.tp3-count{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:#C8372D;color:#fff;font-size:11.5px;font-weight:700;line-height:1}
.tp3-ico{display:inline-flex;flex:none;width:20px;height:20px}.tp3-ico svg{width:100%;height:100%}
/* Weboldal: only the menu button, in the top-left 56 x 56 px box of the editor's white row (portal/v3/editor.css). */
.tp3-web .tp3-burger{position:fixed;top:0;left:0;z-index:31;color:var(--ink)}
.tp3-web .tp3-burger::before{background:none}
.tp3-web .tp3-burger:hover::before{background:var(--subtle);box-shadow:inset 0 0 0 1px var(--border)}

/* Drawer menu */
.tp3-backdrop{position:fixed;inset:0;z-index:40;background:rgba(12,28,44,.42);opacity:0;pointer-events:none;transition:opacity 180ms var(--ease)}
.tp3-menu{position:fixed;top:0;bottom:0;left:0;z-index:41;display:flex;flex-direction:column;gap:2px;width:82%;max-width:300px;padding:0 10px 12px;overflow-y:auto;background:var(--surface);box-shadow:2px 0 24px rgba(0,0,0,.28);transform:translateX(-104%);transition:transform 180ms var(--ease)}
.tp3-menu-open .tp3-backdrop{opacity:1;pointer-events:auto}
.tp3-menu-open .tp3-menu{transform:none}
.tp3-menu-head{display:flex;align-items:center;gap:6px;height:56px;margin:0 -10px 8px;padding:0 16px 0 0;border-bottom:1px solid var(--border)}
.tp3-menu-head strong{font-size:16px;font-weight:700;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tp3-close{position:relative;display:grid;place-items:center;flex:none;width:56px;height:56px;min-height:0;padding:0;border:0;border-radius:0;background:none;color:var(--ink)}
.tp3-close::before{content:"";position:absolute;inset:8px;border-radius:10px;background:var(--subtle);transition:background 120ms var(--ease)}
.tp3-close:hover{background:none}.tp3-close:hover::before{background:var(--teal-soft)}
.tp3-close .tp3-ico{position:relative}
.tp3-item{display:flex;align-items:center;justify-content:flex-start;gap:10px;width:100%;min-height:0;padding:12px 12px;border:0;border-radius:10px;background:none;color:var(--ink);font-size:15.5px;font-weight:600;text-align:left;text-decoration:none}
.tp3-item .tp3-count{margin-left:auto}
.tp3-item:hover{background:var(--subtle)}
.tp3-item[aria-current=page]{background:var(--teal-soft);color:var(--teal-dark)}
/* The comment toolbar sits bottom-left over the drawer foot. */
html:has(#comment-html-root) .tp3-menu{padding-bottom:84px}
.tp3-menu-foot{margin-top:auto;padding-top:8px;border-top:1px solid var(--border)}
.tp3-menu-foot .tp3-item{font-size:14.5px;font-weight:550;color:var(--muted)}
.tp3-menu-foot .tp3-item:hover{color:var(--ink)}
.tp3-menu-foot .tp3-ico{width:18px;height:18px}


/* Shared view parts */
.tp3 #tp3-view{min-height:calc(100vh - 56px)}
.tp3-page{max-width:760px;margin:0 auto}
.tp3-head{margin-bottom:20px}.tp3-head h1{font-size:24px;margin-bottom:4px}.tp3-head p{color:var(--muted)}
.tp3-meta{margin-top:14px;color:var(--muted)}.tp3-meta strong{color:var(--ink)}
.tp3-section{margin-top:28px}.tp3-section>h2{font-size:15px;margin-bottom:10px;color:var(--muted);font-weight:650}
.tp3-rows{margin:0;padding:0;list-style:none;border:1px solid var(--border);border-radius:var(--card);background:var(--surface)}
.tp3-rows>li{display:flex;align-items:flex-start;gap:14px;padding:16px 20px}
.tp3-rows>li+li{border-top:1px solid var(--border)}
.tp3-rows strong{display:block;color:var(--ink)}.tp3-rows small{display:block;margin-top:2px;font-size:13.5px}
.tp3-rows time{margin-left:auto;color:var(--muted);white-space:nowrap;font-size:13.5px}
.tp3-error{padding:20px 24px;border:1px solid var(--danger-soft);border-radius:var(--card);background:var(--danger-soft);color:var(--danger)}

/* Shared controls: buttons 10 px radius, icon buttons, chips */
.tp3 #leads-main button,.tp3 #leads-main .button,.tp3 dialog button{border-radius:10px}
.tp3 #leads-main :is(button,.button) .tp3-ico{width:18px;height:18px}
.tp3 #leads-main input,.tp3 #leads-main .custom-select>button,.tp3 dialog :is(input,textarea,select),.tp3 dialog .custom-select>button{border-radius:10px}
.tp3-iconbtn{display:grid;place-items:center;flex:none;width:36px;height:36px;min-height:0;padding:0;border:0;border-radius:10px;background:none;color:var(--muted)}
.tp3-iconbtn:hover{background:var(--subtle);color:var(--ink)}
.tp3-iconbtn .tp3-ico{width:19px;height:19px}
.tp3-lbl{display:block;font-size:12px;font-weight:650;color:var(--muted)}
.tp3-chips{display:flex;flex-wrap:wrap;gap:6px}
.tp3-chip{display:inline-flex;align-items:center;gap:4px;min-height:24px;padding:2px 9px;border-radius:999px;background:var(--teal-soft);color:var(--teal-dark);font-size:12px;font-weight:650;line-height:1.3}
.tp3-chip .tp3-ico{width:13px;height:13px}
.tp3-chip-hot{background:var(--danger-soft);color:var(--danger)}
.tp3-chip-warn{background:var(--warn-soft);color:var(--warn)}
.tp3-chip-info{background:var(--subtle);color:var(--text);box-shadow:inset 0 0 0 1px var(--border)}
.tp3-chip-muted{background:var(--subtle);color:var(--muted);box-shadow:inset 0 0 0 1px var(--border)}

/* Érdeklődők: one toolbar row (portal.js crmChrome) above Lista, Naptár and Folyamat. The panel's heading row is empty. */
.tp3 .view-note,.tp3 #leads-main>.page-head,.tp3 #leads-main>.toolbar{display:none}
.tp3 #leads-main{max-width:none} /* the same edges on Lista, Naptár and Folyamat, the same 28 px top as the other views */
.tp3-crm-bar{display:flex;align-items:center;gap:10px;min-height:44px;margin-bottom:16px}
.tp3-crm-bar .filters{flex-wrap:nowrap;gap:8px}
.tp3-crm-bar .filters input{width:320px;min-height:40px} /* the whole placeholder stays readable */
.tp3-crm-bar .filters .custom-select{min-width:180px}
.tp3-crm-bar .filters .custom-select>button{min-height:40px}
.tp3-hint{display:none;color:var(--muted);font-size:13.5px}
.tp3-crm-count{margin-left:auto;color:var(--muted);font-size:13.5px;white-space:nowrap}
.tp3-crm-count strong{font-weight:600;color:var(--muted)}
.tp3-crm-actions{display:flex;align-items:center;gap:8px}
.tp3-crm-actions :is(button,.button){min-height:40px;padding:8px 14px}
.tp3-crm-actions .primary{padding-right:16px}
.tp3 #leads-main:has(#reminders-view:not([hidden])) :is(.tp3-crm-bar .filters,.tp3-crm-count,.tp3-crm-actions .button),
.tp3 #leads-main:has(#process-view:not([hidden])) :is(.custom-select:has(#status),.tp3-crm-actions .button){display:none}
.tp3 #leads-main:has(#reminders-view:not([hidden])) .tp3-crm-actions{margin-left:auto}
.tp3 #leads-main:has(#reminders-view:not([hidden])) .tp3-hint[data-for=reminders],
.tp3 #leads-main:has(#process-view:not([hidden])) .tp3-hint[data-for=process]{display:block}
/* The panel's status line as a toast (portal.js clears it after 5 s). */
.tp3 #notice{position:fixed;left:50%;bottom:24px;z-index:45;max-width:min(560px,calc(100vw - 32px));margin:0;padding:12px 18px;border-radius:12px;background:var(--ink);color:#fff;font-size:14px;font-weight:550;box-shadow:0 12px 32px rgba(12,28,44,.28);transform:translateX(-50%)}
.tp3 #notice:empty,.tp3 #schedule-load-error:empty{display:none}

/* Lista */
.tp3 .table-wrap{border-radius:var(--card)}
.tp3 #list-view th{padding:12px 18px;background:var(--subtle)}
.tp3 #list-view td{padding:14px 18px;vertical-align:middle}
/* Fixed columns: an empty result or a long note does not move them. The last cell leaves room for the open arrow. */
.tp3 #list-view table{table-layout:fixed}
.tp3 #list-view th:nth-child(1){width:128px}.tp3 #list-view th:nth-child(2){width:23%}.tp3 #list-view th:nth-child(3){width:31%}.tp3 #list-view th:nth-child(4){width:178px}
.tp3 #rows td{overflow-wrap:anywhere}
.tp3 #rows td:last-child{position:relative;padding-right:48px}
.tp3 #rows td:last-child::after{content:"";position:absolute;top:50%;right:18px;width:18px;height:18px;margin-top:-9px;background:var(--teal-dark);opacity:0;transform:translateX(-4px);transition:opacity 120ms var(--ease),transform 120ms var(--ease);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E") center/18px no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E") center/18px no-repeat}
.tp3 #rows tr:hover td:last-child::after{opacity:1;transform:none}
.tp3 #rows .contact-link{margin-top:2px;font-size:13px;color:var(--muted)}.tp3 #rows .contact-link:hover{color:var(--teal-dark)}
.tp3 #rows .note-empty{color:var(--border-strong)}
.tp3 #rows tr{cursor:pointer;transition:background 100ms var(--ease)}
.tp3 #rows tr:hover{background:var(--subtle)}
.tp3 #rows td:first-child{color:var(--muted);white-space:nowrap}
.tp3 #rows .name{font-size:15px}
.tp3 #rows .name:hover{text-decoration:none}
.tp3 #rows tr:hover .name{color:var(--teal-dark)}
.tp3 #rows td small{margin-top:2px;font-size:13px}
.tp3 #rows .message{max-width:340px}
.tp3 #empty:not([hidden]){display:flex;flex-direction:column;align-items:center;gap:6px;padding:64px 24px 72px;text-align:center;color:var(--muted)}
.tp3 #empty .tp3-ico{width:40px;height:40px;margin-bottom:8px;padding:9px;border-radius:12px;background:var(--subtle);color:var(--muted);box-sizing:content-box}
.tp3 #empty strong{color:var(--ink);font-size:17px}
.tp3 #empty button{margin-top:12px;min-height:40px;padding:8px 16px}
/* Search field: the clear button sits inside it. Selects: one chevron icon instead of the '⌄' glyph (src/custom-select.js). */
.tp3 .search-box input{padding-right:40px}
.tp3 #search-clear{display:grid;place-items:center;right:5px;width:30px;height:30px;border-radius:8px;color:var(--muted)}.tp3 #search-clear[hidden]{display:none}
.tp3 #search-clear:hover{background:var(--subtle);color:var(--ink)}.tp3 #search-clear .tp3-ico{width:16px;height:16px}
.tp3 .custom-select>button::after{content:"";width:16px;height:16px;background:var(--muted);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center/16px no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center/16px no-repeat}

/* Naptár: overdue box, one calendar card (portal.js wraps the head, a legend and the grid), the undated list. */
.tp3 .overdue-strip:not([hidden]){display:flex;flex-direction:column;align-items:flex-start;gap:10px;margin:0 0 16px;padding:16px 20px;border:1px solid var(--border);border-left:4px solid var(--danger);border-radius:var(--card);background:var(--surface)}
.tp3 .overdue-strip strong{color:var(--danger);font-size:15px}
.tp3 .overdue-strip .actions{margin:0;gap:8px}
.tp3 .overdue-strip .actions button{min-height:38px;padding:6px 14px;border:1px solid var(--border);background:var(--surface);color:var(--ink);font-size:14px;font-weight:600}
.tp3 .overdue-strip .actions button:hover{border-color:var(--danger);background:var(--danger-soft)}
.tp3-cal{overflow:hidden;border:1px solid var(--border);border-radius:var(--card);background:var(--surface)}
.tp3-cal .calendar-head{gap:10px;margin:0;padding:14px 16px;border-bottom:1px solid var(--border)}
.tp3-cal .calendar-head h2{margin:0 0 0 4px;font-size:18px}
.tp3-cal .calendar-head label{color:var(--muted);font-weight:600}
.tp3-cal .calendar-head input{min-height:38px}
.tp3-seg2{display:flex;gap:2px;padding:2px;border:1px solid var(--border);border-radius:10px;background:var(--subtle)}
.tp3-seg2 button{min-height:32px!important;height:32px;padding:0 14px!important;border:0;border-radius:7px!important;background:none;color:var(--muted);font-weight:600}
.tp3-seg2 button:hover{background:none;color:var(--ink)}
.tp3-seg2 button[aria-pressed=true]{background:var(--surface)!important;color:var(--ink)!important;box-shadow:0 1px 2px rgba(12,28,44,.14)}
.tp3-navgrp{display:flex;gap:6px}
.tp3-navgrp button{min-height:38px!important;height:38px;min-width:38px;padding:0 12px!important}
.tp3-cal .calendar-head input{height:38px;border-radius:10px}
.tp3-legend{display:flex;gap:20px;padding:10px 16px;border-bottom:1px solid var(--border);color:var(--muted);font-size:13px}
.tp3-dot{display:inline-flex;align-items:center;gap:6px}
/* Each swatch is a small copy of its calendar entry: fill, border and the 3 px left bar. */
.tp3-dot::before{content:"";width:16px;height:14px;border-radius:4px;background:var(--teal-soft);box-shadow:inset 3px 0 0 var(--teal),inset 0 0 0 1px #BFE0E5}
.tp3-dot-work::before{background:#EEF1F6;box-shadow:inset 3px 0 0 var(--navy),inset 0 0 0 1px #D3DAE4}
.tp3-dot-late::before{background:var(--danger-soft);box-shadow:inset 3px 0 0 var(--danger),inset 0 0 0 1px #F3C7C1}
.tp3-cal .calendar-grid{border:0;border-radius:0}
.tp3-cal .calendar-list{margin:0}
.tp3-cal .calendar-list th{padding:10px 16px;text-align:left;font-size:11.5px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);background:var(--subtle)}
.tp3-cal .calendar-list td{padding:12px 16px;border-top:1px solid var(--border)}
.tp3-cal .calendar-empty{margin:16px;border:0;padding:24px;text-align:center;color:var(--muted)}
.tp3 .weekday{padding:10px 12px;background:var(--subtle);font-size:12px;text-transform:uppercase;letter-spacing:.05em}
.tp3 .day{min-height:118px}
/* Weeks that ended before today stay short, so the current week shows without scrolling. */
.tp3 .day.past{min-height:64px}
.tp3 .day:nth-child(7n){border-right:0}
.tp3 .day.today{background:var(--teal-soft);box-shadow:none}
.tp3 .day.today .day-top span{display:inline-grid;place-items:center;min-width:24px;height:24px;border-radius:999px;background:var(--teal);color:#fff}
.tp3 .day-top button{display:grid;place-items:center;width:28px;height:28px;border:0;border-radius:8px;background:none;color:var(--teal);font-size:20px;font-weight:500;line-height:1}
.tp3 .day-top button:hover{background:var(--teal-soft);color:var(--teal-dark)}
.tp3 .day.today .day-top button:hover{background:var(--surface)}
.tp3 .calendar-entry{padding:7px 9px;border:1px solid #BFE0E5;border-left:3px solid var(--teal);border-radius:8px;font-size:13px;font-weight:600;line-height:1.35}
.tp3 .calendar-entry small{margin-top:2px;font-size:12px;font-weight:500;color:var(--text)}
.tp3 .calendar-entry.work{border-color:#D3DAE4;border-left-color:var(--navy)}
.tp3 .calendar-entry.overdue{border-color:#F3C7C1;border-left:3px solid var(--danger);background:var(--danger-soft)}
.tp3 .calendar-entry:hover{border-color:var(--teal);border-left-color:var(--teal)}
.tp3 .calendar-entry.work:hover{border-left-color:var(--navy)}.tp3 .calendar-entry.overdue:hover{border-color:var(--danger)}
.tp3 .date-free{margin:16px 0 0;padding:14px 20px;border-radius:var(--card)}
.tp3 .date-free summary{font-weight:600}
.tp3 .date-free .actions button{min-height:36px}

/* Folyamat board. 320 px columns, the board scrolls sideways, the page scrolls down. A hint above the
 * board and a fade on the right edge show that more columns follow (portal.js edges()). */
.tp3 #process-view{position:relative}
.tp3 #process-view.tp3-more::after{content:"";position:absolute;top:34px;right:0;bottom:16px;width:72px;background:linear-gradient(90deg,rgba(244,243,241,0),#f4f3f1 85%);pointer-events:none}
.tp3-board{display:flex;align-items:flex-start;gap:14px;overflow-x:auto;padding-bottom:16px}
.tp3-col{display:flex;flex-direction:column;flex:none;width:320px;border-radius:var(--card);background:#E9EEF3;transition:box-shadow 120ms var(--ease)}
.tp3-col.is-drop{box-shadow:inset 0 0 0 2px var(--teal);background:var(--teal-soft)}
.tp3-col-head{display:flex;align-items:center;gap:8px;padding:14px 16px 10px}
.tp3-col-head h3{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:700}
.tp3-col-head h3::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--teal)}
.tp3-col[data-status=contacted] h3::before{background:var(--navy)}
.tp3-col[data-status=proposal] h3::before{background:var(--warn)}
.tp3-col[data-status=won] h3::before{background:var(--ok)}
.tp3-col[data-status=lost] h3::before{background:var(--border-strong)}
.tp3-col-count{display:inline-grid;place-items:center;min-width:24px;height:22px;padding:0 7px;border-radius:999px;background:var(--surface);color:var(--ink);font-size:12px;font-weight:700}
.tp3-col-body{display:flex;flex-direction:column;gap:10px;min-height:80px;padding:0 10px 10px}
.tp3-col-empty{padding:20px 8px;color:var(--muted);font-size:13px;text-align:center}
.tp3-lead{display:flex;flex-direction:column;gap:10px;padding:14px 14px 14px 16px;border:1px solid var(--border);border-radius:var(--card);background:var(--surface);box-shadow:0 1px 2px rgba(12,28,44,.06);cursor:grab;overflow-wrap:anywhere;transition:box-shadow 120ms var(--ease),border-color 120ms var(--ease)}
.tp3-lead:hover{border-color:var(--border-strong);box-shadow:0 6px 18px rgba(12,28,44,.08)}
.tp3-lead.is-dragging{opacity:.5}
.tp3-lead-head{display:flex;align-items:center;gap:2px;margin:-4px -6px -2px 0}
.tp3-lead-head h4{flex:1;min-width:0;margin-right:4px;font-size:16px;font-weight:700;line-height:1.3;color:var(--ink)}
.tp3-prev p{display:-webkit-box;margin-top:2px;overflow:hidden;font-size:13.5px;line-height:1.45;color:var(--text);-webkit-line-clamp:2;-webkit-box-orient:vertical}
.tp3-lead-more{display:flex;flex-direction:column;gap:12px;padding-top:12px;border-top:1px solid var(--border);cursor:auto}
.tp3-field>div{display:flex;flex-direction:column;margin-top:2px;font-size:13.5px;color:var(--text);white-space:pre-wrap}
.tp3-field a{color:var(--teal-dark);font-weight:600;text-decoration:none}.tp3-field a:hover{text-decoration:underline}
.tp3-quote{padding:10px 12px;border-radius:10px;background:var(--subtle)}
/* Move buttons: a 2 x 2 grid with the same 10 px radius as every other button. */
.tp3-stages{display:grid!important;grid-template-columns:1fr 1fr;gap:6px!important;margin-top:6px!important}
.tp3-stages button{min-height:36px;padding:4px 10px;font-size:13px;font-weight:600}
.tp3-stages button:hover{border-color:var(--teal);color:var(--teal-dark);background:var(--teal-soft)}
.tp3-lead-actions{display:flex;gap:8px}
.tp3-lead-actions button{flex:1;min-height:38px;padding:6px 10px;font-size:13.5px}

/* Dialogs: the panel's lead and schedule editors and the password dialog. Header and footer stay, the middle scrolls. */
.tp3 dialog{border:0;border-radius:16px;overflow:hidden;box-shadow:0 24px 80px rgba(12,28,44,.3)}
.tp3 dialog::backdrop{background:rgba(12,28,44,.45)}
.tp3 :is(#editor,#schedule-dialog) form{max-height:90vh;padding:0 24px;overflow-y:auto}
.tp3 :is(#editor,#schedule-dialog) .topline{position:sticky;top:0;z-index:1;height:60px;margin:0 -24px;padding:0 12px 0 24px;border-bottom:1px solid var(--border);background:var(--surface)}
.tp3 :is(#editor,#schedule-dialog) .topline h2{font-size:18px}
.tp3 :is(#editor,#schedule-dialog) .view-note{display:block;margin:16px 0 0}
.tp3 #original-details{margin-top:16px;padding:12px 14px;border-radius:10px;background:var(--subtle);color:var(--text);font-size:13.5px}
.tp3 #original-details:empty{display:none}
.tp3 dialog .form-grid{gap:16px;margin-top:18px}
.tp3 dialog .form-grid label{gap:6px}
.tp3 dialog .form-grid :is(input,select,.custom-select>button){min-height:40px}
/* Field text like page text (14 px regular), the label stays 13 px semibold. Text areas grow with the text, no handle. */
.tp3 dialog :is(input,textarea,select,.custom-select>button){font-size:14px;font-weight:400;color:var(--ink)}
.tp3 dialog textarea{resize:none;field-sizing:content;min-height:84px;max-height:240px}
.tp3 dialog .field-error{display:block;margin-top:-2px}
.tp3 dialog .ask{margin:18px 0 0;border-color:var(--border);border-left-color:var(--warn)}
.tp3 dialog .ask-actions button{min-height:38px;padding:6px 14px}
.tp3 #history-box{margin-top:16px;padding:12px 14px;border:1px solid var(--border);border-radius:10px}
.tp3 #history-box summary{font-size:13.5px;color:var(--muted)}
.tp3 #history-box[open] summary{margin-bottom:8px}
.tp3 :is(#editor,#schedule-dialog) .actions{position:sticky;bottom:0;gap:8px;margin:20px -24px 0;padding:14px 24px;border-top:1px solid var(--border);background:var(--surface)}
.tp3 :is(#editor,#schedule-dialog) .actions button{min-height:40px;padding:8px 16px}
.tp3 :is(#lead-schedule,#schedule-complete,#schedule-reload){order:-1}
.tp3 :is(#cancel,#schedule-cancel){margin-left:auto}
.tp3 :is(#save,#schedule-save){background:var(--teal);border-color:var(--teal);color:#fff}
.tp3 :is(#save,#schedule-save):hover{background:var(--teal-dark);border-color:var(--teal-dark)}
.tp3 #edit-error:empty,.tp3 #schedule-error:empty,.tp3 #schedule-status:empty{display:none}
.tp3-dialog{width:440px;max-width:calc(100vw - 32px);padding:0}
.tp3-dialog form{padding:0}
.tp3-dialog header{display:flex;align-items:center;justify-content:space-between;height:60px;padding:0 12px 0 24px;border-bottom:1px solid var(--border)}
.tp3-dialog h2{font-size:18px}
.tp3-dialog-body{display:flex;flex-direction:column;gap:16px;padding:20px 24px 4px}
.tp3-dialog-body>p{color:var(--muted)}
.tp3-dialog label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600;color:var(--ink)}
.tp3-dialog input{min-height:42px}
.tp3-dialog .tp3-dialog-error{color:var(--danger)}.tp3-dialog-error:empty{display:none}
.tp3-dialog footer{display:flex;justify-content:flex-end;gap:8px;margin-top:20px;padding:14px 24px;border-top:1px solid var(--border)}
.tp3-dialog footer button{min-height:40px;padding:8px 16px}

/* Login page: the dark logo (frame.js) above one card on the light page. */
.tp3 .auth{justify-content:center;padding:48px 16px 96px;background:transparent}
.tp3 .auth-logo{height:56px;margin-bottom:28px}
.tp3 .auth-card{width:400px;padding:32px 32px 26px;border:1px solid var(--border);border-radius:16px;box-shadow:0 1px 2px rgba(12,28,44,.05),0 16px 40px rgba(12,28,44,.08)}
.tp3 .auth-card h1{font-size:22px}
.tp3 .auth label{margin-top:22px;font-size:13.5px}
.tp3 .auth input{min-height:44px;border-radius:10px}
.tp3 .auth button{min-height:44px;margin-top:16px;border-radius:10px;font-size:15px;font-weight:600}
.tp3 #auth-error:empty{min-height:0;margin:0}
.tp3 #auth-error{margin-top:14px;font-size:13.5px}
.tp3 #auth-error.tp3-ok{padding:10px 12px;border-radius:10px;background:var(--ok-soft);color:var(--ok)}

/* Halo backdrop and pointer light, the same as the editor (src/site-editor/editor.html), on every portal page (Matt, 2026-11-17). portal.js adds the markup. */
html.tp3{background:#f4f3f1}html.tp3 body{background:transparent}
.bgx{position:fixed;inset:0;z-index:-2;pointer-events:none;overflow:hidden;background:#f4f3f1}.bgx>*{position:absolute;left:0;right:0;top:0;will-change:transform;opacity:.5}
.bgx .l1,.bgx .l2{width:34vmax;height:34vmax;border-radius:50%}.bgx .l1{left:4vw;top:-4vmax;background:radial-gradient(closest-side,rgba(255,255,255,.9),rgba(255,255,255,.4) 48%,rgba(255,255,255,0));transform:scale(3);animation:bga 56s ease-in-out infinite alternate}.bgx .l2{left:auto;right:6vw;top:52vh;background:radial-gradient(closest-side,color-mix(in srgb,var(--teal) 6%,transparent),transparent);transform:scale(2.6);animation:bgb 72s ease-in-out infinite alternate}
.bgx .gd{height:calc(100% + 24px);background:radial-gradient(circle,rgba(62,76,100,.13) 0 .85px,rgba(62,76,100,0) 1.35px) 50% 0/23.5px 23.5px}
.bgx .gl{height:calc(100% + 94px);background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='94' height='94'%3E%3Cg fill='%23324058'%3E%3Crect x='47' width='1' height='94' fill-opacity='.03'/%3E%3Crect y='47' width='94' height='1' fill-opacity='.03'/%3E%3Crect x='47' y='41' width='1' height='13' fill-opacity='.12'/%3E%3Crect x='41' y='47' width='13' height='1' fill-opacity='.12'/%3E%3C/g%3E%3C/svg%3E") 50% 0/94px 94px}
.bgx:after{content:"";position:absolute;inset:0;background:radial-gradient(140% 110% at 50% 30%,rgba(40,52,74,0) 52%,rgba(40,52,74,.05));opacity:.5}
@keyframes bga{to{transform:translate3d(42vw,34vh,0) scale(3)}}@keyframes bgb{to{transform:translate3d(-46vw,-30vh,0) scale(2.6)}}
.pfx{position:fixed;inset:0;z-index:-1;pointer-events:none;overflow:hidden;opacity:0;transition:opacity .7s cubic-bezier(.2,.7,.1,1)}.pfx.is-on{opacity:.95}
.pfx-lens{position:absolute;left:0;top:0;width:520px;height:520px;overflow:hidden;border-radius:50%;background:radial-gradient(closest-side,rgba(255,255,255,.8),rgba(255,255,255,0));-webkit-mask-image:radial-gradient(closest-side,#000 0%,rgba(0,0,0,.55) 45%,transparent 100%);mask-image:radial-gradient(closest-side,#000 0%,rgba(0,0,0,.55) 45%,transparent 100%);will-change:transform}
.pfx-grid{position:absolute;left:0;top:0;width:614px;height:614px;background:linear-gradient(to right,rgba(50,64,88,.09) 1px,transparent 1px) 0 0/23.5px 23.5px,linear-gradient(to bottom,rgba(50,64,88,.09) 1px,transparent 1px) 0 0/23.5px 23.5px;will-change:transform}
.pfx-marks{position:absolute;left:-4px;top:-4px;right:0;bottom:0;background:rgba(50,64,88,.38);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='94' height='94'%3E%3Cpath d='M0 4.5h9M4.5 0v9' stroke='%23000'/%3E%3C/svg%3E") 0 0/94px 94px repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='94' height='94'%3E%3Cpath d='M0 4.5h9M4.5 0v9' stroke='%23000'/%3E%3C/svg%3E") 0 0/94px 94px repeat}
/* Card properties: the eye button of a Folyamat column and Adatok above Lista open the popover (portal.js openEye). */
.tp3-col-head .tp3-eye{margin-left:auto;color:var(--muted)}
.tp3-crm-actions .tp3-eye-lbtn{display:none}
.tp3 #leads-main:has(#list-view:not([hidden])) .tp3-crm-actions .tp3-eye-lbtn{display:inline-flex}
.tp3-eye-pop{position:fixed;z-index:60;width:300px;max-width:calc(100vw - 16px);max-height:calc(100vh - 16px);overflow:auto;padding:14px;border:1px solid var(--border);border-radius:14px;background:var(--surface);box-shadow:0 18px 48px rgba(12,28,44,.18)}
.tp3-eye-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px}.tp3-eye-head strong{color:var(--ink);font-size:14.5px}.tp3-eye-head span{color:var(--muted);font-size:12.5px}
.tp3-eye-help{margin:4px 0 10px;color:var(--muted);font-size:12.5px;line-height:1.45}
ul.tp3-eye-list{display:flex;flex-direction:column;gap:2px;margin:0;padding:0;list-style:none}
ul.tp3-eye-list li{display:flex;align-items:center;gap:6px;min-height:36px;padding:0 4px 0 2px;border-radius:8px}
ul.tp3-eye-list li[draggable=true]{cursor:grab}ul.tp3-eye-list li:hover{background:var(--subtle)}
ul.tp3-eye-list li.is-off+li:not(.is-off),ul.tp3-eye-list li:not(.is-off)+li.is-off{margin-top:6px;padding-top:6px;border-top:1px dashed var(--border-strong);border-radius:0}
ul.tp3-eye-list label{display:flex;flex:1;align-items:center;gap:8px;font-size:13.5px;color:var(--text);cursor:pointer}
ul.tp3-eye-list input{width:16px;height:16px;min-height:0;margin:0;accent-color:var(--teal)}
ul.tp3-eye-list li.is-off label{color:var(--muted)}
.tp3-grip{width:10px;height:16px;flex:none;background:radial-gradient(circle,var(--border-strong) 1.2px,transparent 1.6px) 0 0/5px 5px}
li.is-off .tp3-grip{visibility:hidden}
ul.tp3-eye-list .tp3-iconbtn{width:28px;height:28px;min-height:0;padding:0;font-size:14px}
.tp3-eye-foot{display:flex;justify-content:space-between;gap:8px;margin-top:12px}
.tp3-kv{display:flex;gap:6px;font-size:13px;line-height:1.4}.tp3-kv .tp3-lbl{flex:none}.tp3-kv>span:last-child{color:var(--text);font-weight:550}
.tp3-kvs{display:flex;flex-direction:column;gap:2px;margin-top:6px}.tp3-kvs .tp3-lbl{color:var(--muted)}
