/* Authentico Studio shared design v1: tokens, shared components (.ds-*) and the service shell
 (header, service switcher, sidebar, dialogs, phone menu). No bare element resets: each service keeps its own
 base element styles, loaded after this file. */
@font-face{font-family:Assistant;src:url('/fonts/Assistant-Variable.ttf') format('truetype');font-weight:200 800;font-display:swap}
:root {
 --brand-red:#aa0000; --brand-gray:#5e5e5e; --brand-gray-light:#b8b8b8;
 --surface:#ffffff; --surface-subtle:#f6f7f6; --surface-selected:#f8eaea; --ink:#343834; --ink-muted:#5e5e5e;
 --line:#e5e8e5; --line-control:#b8b8b8; --action:var(--brand-red); --action-hover:#f2dada; --success:#276538; --warning:#795400; --danger:#aa0000;
 --wa-canvas:#efeae2; --wa-incoming:#ffffff; --wa-outgoing:#d9fdd3; --wa-system:#fff8c4; --wa-date:#e1f3fb; --wa-read:#087da4; --wa-meta:#687980;
 --font-ui:Assistant,Arial,sans-serif; --space-1:4px; --space-2:8px; --space-3:12px; --space-4:16px; --space-5:24px; --space-6:32px; --space-7:48px; --space-8:64px;
 --radius-control:4px; --radius-panel:8px; --shadow-dialog:0 16px 48px #22222226;
 --control-height:32px; --touch-target:44px; --header-height:56px; --header-height-phone:52px; --sidebar-width:200px; --sidebar-width-collapsed:60px;
 --weight-regular:400; --weight-medium:500; --weight-strong:600; --weight-bold:700;
 --bg-primary:var(--surface); --card-bg:var(--surface); --card-border:var(--line); --text-main:var(--ink); --text-muted:var(--ink-muted); --accent-red:var(--action); --accent-red-hover:var(--action-hover); --accent-green:var(--success); --accent-teal:var(--brand-gray); --font-hebrew:var(--font-ui); --font-headers:var(--font-ui); --font-english:var(--font-ui);
}
.ds-button,.sidebar-menu-header,.sidebar-menu-item,.workspace-panel-open,.ds-dialog-close{min-height:var(--control-height);height:var(--control-height);padding:4px 10px!important;border:0!important;border-radius:var(--radius-control)!important;background:transparent!important;box-shadow:none!important;font:var(--weight-medium) 14px/20px var(--font-ui)!important;display:inline-flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap;text-decoration:none;color:var(--ink)!important;transform:none!important;cursor:pointer}
.ds-button:hover,.sidebar-menu-header:hover,.sidebar-menu-item:hover,.workspace-panel-open:hover,.ds-dialog-close:hover{background:var(--surface-subtle)!important}
.ds-button.primary{background:var(--surface-selected)!important;color:var(--action)!important;font-weight:var(--weight-strong)!important}
.ds-button.primary:hover{background:var(--action-hover)!important}
.ds-input{width:100%;min-width:0;min-height:36px;padding:8px 10px!important;background:var(--surface-subtle)!important;border:0!important;border-bottom:1px solid var(--line-control)!important;border-radius:var(--radius-control) var(--radius-control) 0 0!important;font:var(--weight-regular) 14px/1.5 var(--font-ui)!important;color:var(--ink)!important}
.ds-search-field{position:relative;min-width:0}
.ds-search-field>svg{position:absolute;inset-inline-start:14px;top:50%;transform:translateY(-50%);z-index:1;pointer-events:none;fill:none;stroke:currentColor}
.ds-search-field>input[type=search]{box-sizing:border-box;width:100%;min-width:0;min-height:40px;padding:8px 48px 8px 12px!important;padding-inline-start:48px!important;padding-inline-end:12px!important;appearance:none;-webkit-appearance:none;background:var(--surface-subtle)!important;border:0!important;border-bottom:1px solid var(--line-control)!important;border-radius:var(--radius-control) var(--radius-control) 0 0!important;font:var(--weight-regular) 14px/1.5 var(--font-ui)!important;color:var(--ink)!important}
.ds-search-field>input[type=search]::-webkit-search-decoration{display:none}
.icon,.menu-icon,.ds-icon{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
[hidden]{display:none!important}
.skip-link{position:fixed;top:-100px;z-index:100000;background:#fff;padding:8px}
.skip-link:focus{top:4px}
.studio-header{height:var(--header-height);min-height:var(--header-height);display:flex;align-items:center;gap:16px;padding:0 24px;border-bottom:1px solid var(--line);background:#fff}
.logo-container{display:flex;align-items:center;gap:10px}
.logo-container img{width:28px!important;height:28px!important}
.logo-link{display:flex;border-radius:50%;color:inherit;text-decoration:none;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.logo-link img{display:block}
.logo-title{font-size:18px;font-weight:var(--weight-medium)}
.logo-title+div{display:none}
.ds-review{width:min(760px,calc(100vw - 24px));max-height:calc(100dvh - 24px);margin:auto;padding:20px;border:1px solid var(--line);border-radius:var(--radius-panel);background:white;color:var(--ink);overflow:auto}
.ds-review::backdrop{background:#22222255}
.ds-review>header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}
.ds-review .ds-stack{gap:10px}
.studio-switcher{display:flex;gap:4px;padding:3px;background:var(--surface-subtle);border-radius:6px;margin-inline-end:auto}
.studio-switcher a{min-height:36px;padding:0 14px;display:flex;align-items:center;gap:8px;border-radius:var(--radius-control);color:var(--ink-muted);font-size:14px;font-weight:var(--weight-medium);text-decoration:none;white-space:nowrap}
.studio-switcher a:hover{color:var(--ink);background:#fff}
.studio-switcher a[aria-current=page]{background:#fff;color:var(--action);font-weight:var(--weight-strong);box-shadow:0 1px 2px #2222221a}
.studio-switcher a:focus-visible{outline:2px solid var(--action);outline-offset:2px}
@media(max-width:700px){.studio-header{padding:0 12px;gap:6px}.logo-title{display:none}.studio-switcher a{padding:0 10px;min-height:var(--touch-target)}.studio-switcher a svg{display:none}.ds-review h2{font-size:16px}.ds-review{padding:16px}}
.compact-mobile-control{display:none!important}
.workspace-panel{width:min(540px,calc(100vw - 24px))}
.workspace-panel-content{display:flex;flex-direction:column;gap:16px;min-width:0}
.workspace-panel-open{flex-shrink:0}
@media(max-width:700px){.compact-mobile-ready .compact-mobile-control:not([hidden]){display:inline-flex!important}.compact-mobile-ready .studio-header{height:var(--header-height-phone)!important;min-height:var(--header-height-phone)!important;padding:0 8px!important;gap:4px!important}.compact-mobile-ready .logo-container{min-width:0;gap:6px}.compact-mobile-ready .logo-title{font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.compact-mobile-ready .logo-container>div{min-width:0}.compact-mobile-ready #mobile-navigation-open{order:-1}.compact-mobile-ready .workspace-panel-open,.compact-mobile-ready .workspace-panel button{min-width:var(--touch-target);min-height:var(--touch-target);height:auto}.compact-mobile-ready .workspace-panel{padding:16px;max-height:calc(100dvh - 24px)}.compact-mobile-ready .logo-container{flex-shrink:0;margin-inline-end:13px}.compact-mobile-ready .studio-switcher{min-width:0;flex-shrink:1;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:none}.compact-mobile-ready .studio-switcher::-webkit-scrollbar{display:none}.compact-mobile-ready .studio-switcher a{flex:0 0 auto;padding:0 10px;font-size:14px}.compact-mobile-ready .studio-switcher a span{direction:ltr}.compact-mobile-ready .studio-switcher a:focus-visible{outline-offset:-2px}}
.ds-dialog-header{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:space-between!important;gap:16px;direction:rtl;width:100%;text-align:right}
.ds-dialog-header h2,.ds-dialog-header h3{margin:0;min-width:0;font-size:18px;font-weight:var(--weight-strong)}
.ds-dialog-close{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 var(--touch-target)!important;width:var(--touch-target)!important;height:var(--touch-target)!important;min-height:var(--touch-target)!important;padding:0!important;margin-inline-start:auto;background:transparent!important;border:0!important;color:var(--ink-muted)!important;border-radius:var(--radius-control);cursor:pointer}
.ds-dialog-close svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5}
.ds-dialog-close:hover{background:transparent!important;color:var(--action)!important}
.ds-dialog-close:focus-visible{outline:2px solid var(--action)!important;outline-offset:-2px;background:transparent!important;color:var(--action)!important}
.ds-dialog-close:focus-visible svg{stroke-width:2.5}
@media(max-width:700px){.ds-dialog-header h2,.ds-dialog-header h3{font-size:16px}}
.ds-dialog-header>div{min-width:0}
.ds-dialog-header{position:sticky;top:0;z-index:2;background:var(--surface);flex-shrink:0}
.tm{font-size:.5em;line-height:0;vertical-align:super;margin-inline-start:1px;font-weight:var(--weight-strong)}
/* Service navigation sidebar (right side in RTL): --sidebar-width, collapsed --sidebar-width-collapsed; hidden on phones where its items move into the header menu. */
.app-layout{display:flex;flex:1;min-height:0;overflow:hidden}
.app-sidebar{width:var(--sidebar-width);min-width:var(--sidebar-width);display:flex;flex-direction:column;padding:12px 10px;border-inline-end:1px solid var(--line);position:relative;gap:8px;background:white}
.sidebar-menu-section{display:none}
.sidebar-menu-header{justify-content:flex-start!important;margin-bottom:12px}
.sidebar-menu-items{display:flex;flex-direction:column;gap:4px}
.sidebar-menu-item{width:100%;height:36px!important;justify-content:flex-start!important;gap:12px!important;padding:8px 12px!important;text-align:start}
.sidebar-menu-item.active{background:var(--surface-selected)!important;color:var(--action)!important;font-weight:var(--weight-strong)!important}
.sidebar-library-link{margin-top:auto;padding:10px;font-size:13px;color:var(--ink-muted);text-decoration:none}
.sidebar-menu-item::before,.sidebar-menu-item::after{display:none}
.app-sidebar.collapsed{width:var(--sidebar-width-collapsed)!important;min-width:var(--sidebar-width-collapsed);padding:12px 8px}
.app-sidebar.collapsed .sidebar-menu-item{padding:8px!important;justify-content:center!important}
.app-sidebar.collapsed .sidebar-menu-item span,.app-sidebar.collapsed .sidebar-menu-header span,.app-sidebar.collapsed .sidebar-library-link{display:none}
@media(max-width:700px){.app-sidebar,.app-sidebar.collapsed{display:flex!important;width:56px!important;min-width:56px;padding:8px 6px}.sidebar-menu-header,.sidebar-menu-section,.sidebar-menu-item span,.sidebar-library-link{display:none!important}.sidebar-menu-item{height:var(--touch-target)!important;justify-content:center!important;padding:8px!important}}
@media(max-width:700px){.compact-mobile-ready>.app-layout>.app-sidebar{display:none!important}.compact-mobile-ready .workspace-panel .sidebar-menu-item{justify-content:flex-start!important;gap:12px!important;height:auto!important}.compact-mobile-ready .workspace-panel .sidebar-menu-item span{display:inline!important}}
/* Notices and confirmations (StudioShell.alert/confirm). */
.studio-message-dialog{width:min(480px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto}
.studio-message-body{white-space:pre-wrap;overflow-wrap:anywhere;margin-block:16px}
.studio-dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:8px}
/* Phones: a service may also place its design library link in the header menu. */
@media(max-width:700px){.compact-mobile-ready .workspace-panel .sidebar-library-link{display:block!important;margin-top:0;padding:10px 0}}
/* Studio account area (every service): the signed-in account in muted text, then the sign-out button (ds-button). Service tools come before it. */
.studio-account{font-size:13px;line-height:1.5;color:var(--ink-muted);direction:ltr;unicode-bidi:isolate;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;max-width:260px}
.studio-account:empty{display:none}
.workspace-panel .studio-account{align-self:flex-start;max-width:100%}
