/* Chat Lab interface. Kept as a static asset until the F1 asset route is verified. */
:root {
    color-scheme: light;
    --ink: #172431;
    --muted: #647586;
    --line: #e3e9ec;
    --surface: #fff;
    --canvas: #f5f7f6;
    --brand: #116b64;
    --brand-dark: #0c514c;
    --brand-soft: #e6f4f0;
    --focus: #0c8275;
    --danger: #a33a3c;
    --shadow: 0 12px 38px rgba(20, 45, 54, .045);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--canvas); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
a { color: var(--brand-dark); text-underline-offset: .17em; }
a:hover { color: var(--brand); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -.035em; line-height: 1.16; }
h1 { font-size: clamp(2.2rem, 4vw, 3.45rem); font-weight: 760; }
h2 { font-size: 1.4rem; font-weight: 730; }
h3 { font-size: 1.07rem; }
.skip-link { position: fixed; z-index: 100; top: -5rem; left: 1rem; padding: .7rem 1rem; background: #fff; border-radius: .6rem; }
.skip-link:focus { top: 1rem; }
.muted { color: var(--muted); }
.app-frame { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.sidebar { min-height: 100vh; padding: 2.25rem 1.1rem 1.4rem; background: #102331; color: #d8e7e7; display: flex; flex-direction: column; }
.brand { display: flex; gap: .8rem; align-items: center; padding: 0 .75rem; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand-mark { width: 36px; height: 36px; flex: 0 0 36px; display: inline-flex; align-items: end; gap: 3px; padding: 8px; border-radius: 11px; background: #33c7aa; transform: rotate(-7deg); }
.brand-mark span { width: 4px; border-radius: 3px; background: #0e3c3c; display: block; }
.brand-mark span:nth-child(1) { height: 10px; }
.brand-mark span:nth-child(2) { height: 17px; }
.brand-mark span:nth-child(3) { height: 12px; }
.brand-copy { display: grid; line-height: 1.2; }
.brand-copy strong, .login-story-brand { font-size: 1.18rem; letter-spacing: -.05em; font-weight: 800; }
.brand-copy small { margin-top: .25rem; color: #94aeb6; font-size: .72rem; }
.sidebar-label { margin: 3.6rem 1rem .8rem; font-size: .66rem; font-weight: 750; letter-spacing: .14em; color: #72939c; }
.sidebar-nav { display: grid; gap: .28rem; }
.sidebar-nav a { display: flex; align-items: center; gap: .75rem; min-height: 43px; padding: .55rem .8rem; border-radius: .65rem; color: #a9c0c5; text-decoration: none; font-size: .87rem; font-weight: 600; }
.sidebar-nav a:hover, .sidebar-nav a[aria-current] { background: #203c46; color: #fff; }
.sidebar-nav a[aria-current] { box-shadow: inset 3px 0 0 #4cdbbd; }
.nav-icon { width: 24px; display: inline-flex; justify-content: center; font-size: 1.16rem; }
.sidebar-bottom { margin-top: auto; padding: 1.1rem .85rem .25rem; border-top: 1px solid #29414b; display: flex; gap: .7rem; align-items: center; }
.sidebar-bottom-dot { width: 8px; height: 8px; border-radius: 50%; background: #43d5af; box-shadow: 0 0 0 4px #234c4c; }
.sidebar-bottom div { display: grid; gap: .1rem; }
.sidebar-bottom strong { color: #e7f3f1; font-size: .77rem; }
.sidebar-bottom small { color: #8daab1; font-size: .7rem; }
.app-main { min-width: 0; }
.topbar { min-height: 78px; padding: 0 clamp(1.35rem, 4vw, 3.8rem); display: flex; justify-content: space-between; align-items: center; gap: 1rem; background: #fff; border-bottom: 1px solid var(--line); }
.topbar-location { color: #567077; font-size: .79rem; font-weight: 700; letter-spacing: .035em; }
.topbar-user { display: flex; align-items: center; gap: .75rem; }
.user-avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--brand-dark); background: #dcf3ed; font-weight: 800; }
.user-copy { display: grid; line-height: 1.25; min-width: 0; }
.user-copy strong { font-size: .79rem; }
.user-copy small { max-width: 220px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--muted); font-size: .69rem; }
.topbar-user form { margin-left: .25rem; }
.mobile-menu { display: none; position: relative; }
.page-content { width: 100%; max-width: 1560px; margin: 0 auto; padding: clamp(1.6rem, 4vw, 3.65rem); }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2.3rem; }
.page-heading h1 { margin: .65rem 0 .55rem; }
.page-heading p { margin: 0; max-width: 640px; color: var(--muted); font-size: .95rem; }
.eyebrow { display: inline-flex; gap: .55rem; align-items: center; color: var(--brand); font-size: .67rem; font-weight: 800; letter-spacing: .15em; }
.eyebrow-line { width: 18px; height: 2px; background: #20aa97; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: .6rem; min-height: 42px; padding: .65rem 1rem; border: 1px solid transparent; border-radius: .63rem; text-decoration: none; font-size: .83rem; font-weight: 730; line-height: 1.2; white-space: nowrap; transition: background .18s, border-color .18s, transform .18s, box-shadow .18s; }
.button:hover { transform: translateY(-1px); text-decoration: none; }
.button-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 13px rgba(17, 107, 100, .12); }
.button-primary:hover { background: var(--brand-dark); color: #fff; }
.button-secondary { background: #fff; color: var(--ink); border-color: #cddad8; }
.button-secondary:hover { background: #f1f7f5; color: var(--ink); border-color: #9cb8b2; }
.button-ghost, .button-quiet { background: transparent; color: #486068; }
.button-ghost:hover, .button-quiet:hover { background: #edf3f2; color: var(--brand-dark); }
.button-small { min-height: 34px; padding: .42rem .65rem; font-size: .75rem; }
.button-full { width: 100%; }
.notice { display: grid; gap: .15rem; padding: .85rem 1rem; margin-bottom: 1.4rem; border: 1px solid; border-radius: .7rem; font-size: .86rem; }
.notice-success { color: #1a6a4b; border-color: #bde6ce; background: #edfaef; }
.notice-error { color: #963337; border-color: #edc4c2; background: #fff2f0; }
.panel { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 1rem; box-shadow: var(--shadow); }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.5rem 1.7rem 1.1rem; }
.panel-heading h2 { margin: .4rem 0 0; }
.panel-intro { padding: 0 1.7rem; margin-bottom: 1.4rem; color: var(--muted); font-size: .84rem; }
.count-pill, .heading-count { display: inline-flex; align-items: center; padding: .42rem .72rem; border: 1px solid #dce8e6; border-radius: 99px; background: #f5faf8; color: #39665f; font-size: .76rem; font-weight: 700; }
.overview-strip { display: flex; align-items: center; gap: 1.15rem; min-height: 100px; margin-bottom: 1.45rem; padding: 1.15rem 1.5rem; border: 1px solid #dcece6; border-radius: .95rem; background: linear-gradient(110deg, #e7f5ee 0%, #f6faf6 62%, #e8f5f4 100%); }
.overview-symbol { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 15px; color: #fff; background: var(--brand); font-size: 1.6rem; }
.overview-strip > div:nth-child(2) { display: grid; gap: .1rem; }
.overview-number { font-size: 1.7rem; font-weight: 800; line-height: 1; letter-spacing: -.05em; }
.overview-label { color: #4b6966; font-size: .78rem; font-weight: 650; }
.overview-note { margin-left: auto; color: #63837b; font-size: .74rem; }
.platform-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(320px, .83fr); gap: 1.45rem; align-items: start; }
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; }
.data-table th { padding: .8rem 1.7rem; color: #82939c; background: #fafcfc; border-top: 1px solid var(--line); font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.data-table td { padding: 1.1rem 1.7rem; border-top: 1px solid #eff2f2; vertical-align: middle; font-size: .8rem; }
.data-table tbody tr:hover { background: #fbfdfc; }
.entity-cell { display: flex; align-items: center; gap: .75rem; min-width: 180px; }
.entity-avatar, .workspace-avatar { display: grid; place-items: center; flex: 0 0 auto; width: 38px; height: 38px; border-radius: 11px; color: #216b60; background: #dff1eb; font-weight: 800; }
.entity-cell span:last-child { display: grid; gap: .18rem; }
.entity-cell strong { font-size: .82rem; }
.entity-cell small { color: #82919a; font-size: .7rem; }
.status-badge { display: inline-flex; align-items: center; gap: .4rem; padding: .32rem .57rem; border-radius: 99px; font-size: .7rem; font-weight: 750; white-space: nowrap; }
.status-badge-active { color: #247353; background: #e8f7ec; }
.status-badge-inactive { color: #746e65; background: #f1efeb; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.row-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .3rem; }
.support-details { position: relative; }
.support-details summary { list-style: none; padding: .48rem .55rem; border-radius: .5rem; color: var(--brand-dark); font-size: .75rem; font-weight: 700; cursor: pointer; white-space: nowrap; }
.support-details summary::-webkit-details-marker { display: none; }
.support-details summary:hover { background: var(--brand-soft); }
.support-details[open] form { width: min(250px, 100%); padding: 1rem; display: grid; gap: .5rem; background: #fff; border: 1px solid var(--line); border-radius: .65rem; }
.support-details label { font-size: .73rem; font-weight: 700; }
.create-panel { padding-bottom: 1.7rem; scroll-margin-top: 2rem; }
.form-stack { display: grid; gap: 1.2rem; }
.create-panel .form-stack { padding: 0 1.7rem; }
.field { display: grid; gap: .43rem; }
.field label { font-size: .77rem; font-weight: 720; color: #334956; }
input:not([type="checkbox"]):not([type="hidden"]), textarea, select { width: 100%; min-height: 44px; padding: .66rem .82rem; background: #fff; border: 1px solid #cbd7dc; border-radius: .58rem; color: var(--ink); transition: border-color .16s, box-shadow .16s; }
input::placeholder, textarea::placeholder { color: #9baab1; }
input:hover, textarea:hover, select:hover { border-color: #9eb7b6; }
input:focus, textarea:focus, select:focus { border-color: var(--focus); outline: 0; box-shadow: 0 0 0 3px rgba(12, 130, 117, .16); }
input[aria-invalid="true"] { border-color: var(--danger); }
input[type="checkbox"] { width: 1rem; height: 1rem; accent-color: var(--brand); }
.field-help { color: var(--muted); font-size: .72rem; margin: 0; }
.field-error, .error { color: var(--danger); font-size: .74rem; margin: 0; }
.empty-state { display: grid; justify-items: center; text-align: center; padding: 3.8rem 1.5rem; }
.empty-state-large { min-height: 320px; align-content: center; background: #fff; border: 1px dashed #bed0ce; border-radius: 1rem; }
.empty-icon { display: grid; place-items: center; width: 55px; height: 55px; margin-bottom: 1.1rem; border-radius: 15px; background: #e6f4ef; color: var(--brand); font-size: 1.7rem; }
.empty-state h2, .empty-state h3 { margin-bottom: .45rem; }
.empty-state p { color: var(--muted); font-size: .85rem; }
.workspace-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.3rem; }
.workspace-card { min-height: 225px; display: flex; flex-direction: column; justify-content: space-between; padding: 1.35rem; color: var(--ink); text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: .9rem; box-shadow: var(--shadow); transition: border-color .18s, box-shadow .18s, transform .18s; }
.workspace-card:hover { color: var(--ink); border-color: #8bcbb9; box-shadow: 0 15px 34px rgba(20, 65, 60, .09); transform: translateY(-3px); }
.workspace-card-top, .workspace-card-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.workspace-avatar { width: 48px; height: 48px; border-radius: 13px; font-size: 1.15rem; }
.workspace-card h2 { margin: 1.3rem 0 .3rem; font-size: 1.25rem; }
.workspace-card p { margin: 0; color: var(--muted); font-size: .76rem; }
.workspace-card-bottom { padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .76rem; }
.workspace-card-bottom strong { color: var(--ink); margin-left: .25rem; }
.workspace-arrow { color: var(--brand); font-size: 1.4rem; line-height: 1; }
.organization-workspace { display: grid; gap: 1.6rem; }
.organization-back { width: fit-content; min-height: 42px; display: inline-flex; align-items: center; gap: .5rem; color: #57747a; font-size: .79rem; font-weight: 700; text-decoration: none; }
.organization-back:hover { color: var(--brand-dark); }
.organization-back span { font-size: 1.1rem; }
.organization-heading { margin-bottom: .3rem; }
.organization-heading > div { min-width: 0; }
.organization-heading h1 { overflow-wrap: anywhere; }
.organization-public-id { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .86em; color: #46616c; overflow-wrap: anywhere; }
.organization-role { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem .8rem; border: 1px solid #cfe7df; border-radius: 99px; background: #ebf7f2; color: #426a60; font-size: .76rem; white-space: nowrap; }
.organization-role strong { color: var(--brand-dark); }
.organization-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1rem; }
.organization-section-heading h2 { margin: .35rem 0 0; }
.organization-section-heading p { margin: 0; color: var(--muted); font-size: .78rem; }
.organization-plan > p { padding: 0 1.7rem; margin: 0 0 .7rem; overflow-wrap: anywhere; font-size: .85rem; line-height: 1.5; }
.organization-plan > p:last-child { margin-bottom: 1.5rem; }
.organization-module-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.organization-module-card { min-width: 0; min-height: 195px; display: flex; flex-direction: column; align-items: start; gap: 1rem; padding: 1.3rem; border: 1px solid var(--line); border-radius: .9rem; background: #fff; box-shadow: var(--shadow); }
.organization-module-card--inbox { grid-column: 1 / -1; min-height: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1.25rem; border-color: #cce7df; background: #f8fcfa; }
.organization-module-card--inbox > div { max-width: 570px; }
.organization-module-card--inbox .organization-module-action, .organization-module-card--inbox .organization-module-state { margin-top: 0; }
.organization-module-card > div { min-width: 0; }
.organization-module-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; background: var(--brand-soft); color: var(--brand-dark); font-size: 1.35rem; line-height: 1; }
.organization-module-card h3 { margin: 0 0 .4rem; font-size: .96rem; }
.organization-module-card p { margin: 0; color: var(--muted); font-size: .77rem; line-height: 1.5; }
.organization-module-state { margin-top: auto; display: inline-flex; padding: .4rem .6rem; border-radius: 99px; background: #f1f4f4; color: #60767b; font-size: .74rem; font-weight: 700; }
.organization-module-action { margin-top: auto; }
.organization-information-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(310px, .9fr); gap: 1.35rem; align-items: start; }
.organization-table { min-width: 570px; }
.organization-table td { overflow-wrap: anywhere; }
.organization-members .entity-cell { min-width: 160px; }
.organization-members .entity-cell strong { font-size: .78rem; }
.organization-table-scroll:focus-visible { outline-offset: -3px; }
.organization-settings-note { padding: 0 1.7rem; margin: 0 0 1rem; color: var(--muted); font-size: .75rem; }
.whatsapp-qr-workspace { max-width: 980px; }
.whatsapp-qr-panel { padding: clamp(1.3rem, 3vw, 2rem); }
.whatsapp-qr-panel-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
.whatsapp-qr-panel-heading h2 { margin: .35rem 0 0; font-size: 1.35rem; }
.whatsapp-qr-status { display: inline-flex; align-items: center; gap: .55rem; min-height: 38px; padding: .45rem .75rem; border: 1px solid #dce8e6; border-radius: 99px; background: #f5faf8; color: #365f59; font-size: .8rem; font-weight: 750; }
.whatsapp-qr-status-dot { width: .55rem; height: .55rem; flex: 0 0 auto; border-radius: 50%; background: currentColor; }
.whatsapp-qr-status--preparing, .whatsapp-qr-status--waiting_qr, .whatsapp-qr-status--connecting { border-color: #e8dcb0; background: #fffbeb; color: #745714; }
.whatsapp-qr-status--connected { border-color: #bde6ce; background: #edfaef; color: #1a6a4b; }
.whatsapp-qr-status--error { border-color: #edc4c2; background: #fff2f0; color: #963337; }
.whatsapp-qr-message, .whatsapp-qr-content > p { max-width: 65ch; margin: 1.35rem 0; color: #405968; font-size: .92rem; line-height: 1.6; }
.whatsapp-qr-content { display: grid; justify-items: start; }
.whatsapp-qr-image-frame { display: grid; place-items: center; width: 100%; padding: 1.2rem; border: 1px solid var(--line); border-radius: .85rem; background: #f8fbfa; }
.whatsapp-qr-image-frame img { display: block; max-width: 100%; height: auto; aspect-ratio: 1; }
.whatsapp-qr-steps { margin: 1.3rem 0 .2rem; padding-left: 1.4rem; color: var(--ink); font-size: .87rem; line-height: 1.65; }
.whatsapp-qr-steps li + li { margin-top: .35rem; }
.whatsapp-qr-content > .whatsapp-qr-note { margin: .8rem 0 0; color: var(--muted); font-size: .8rem; }
.whatsapp-qr-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; padding-top: 1.3rem; border-top: 1px solid var(--line); }
.whatsapp-qr-actions form { margin: 0; }
.organization-settings-table { min-width: 360px; }
.organization-setting-key { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .75rem; }
.organization-hidden-value { color: #61747b; font-size: .75rem; font-style: italic; }
.organization-empty { padding: 2.6rem 1.2rem 3rem; }
.guest-body { background: #fff; }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
.login-story { position: relative; overflow: hidden; padding: clamp(2rem, 5vw, 5rem); background: #102f3b; color: #fff; }
.login-story::before { content: ""; position: absolute; width: min(70vw, 850px); aspect-ratio: 1; right: -44%; top: 8%; border: 1px solid rgba(157, 219, 209, .28); border-radius: 50%; box-shadow: 0 0 0 75px rgba(46, 183, 154, .04), 0 0 0 150px rgba(124, 200, 172, .035), 0 0 0 225px rgba(124, 200, 172, .025); }
.login-story::after { content: ""; position: absolute; width: 360px; height: 360px; right: 14%; bottom: -230px; border-radius: 50%; background: #176b65; filter: blur(80px); opacity: .48; }
.login-story-content { position: relative; z-index: 1; min-height: calc(100vh - clamp(4rem, 10vw, 10rem)); display: flex; flex-direction: column; }
.login-story-brand { display: flex; align-items: center; gap: .75rem; }
.login-story-copy { margin: auto 0; max-width: 670px; }
.eyebrow-light { color: #89dec6; }
.login-story h1 { margin: 1.6rem 0; font-size: clamp(2.6rem, 5.2vw, 5.1rem); line-height: 1.05; letter-spacing: -.065em; }
.login-story h1 em { color: #8cdfc4; font-style: normal; }
.login-story-copy p { max-width: 440px; color: #b8d3d2; font-size: 1.03rem; line-height: 1.7; }
.login-story-footer { display: flex; align-items: center; gap: .6rem; color: #9abdbb; font-size: .77rem; }
.story-orbit { width: 8px; height: 8px; border: 1px solid #72cdb3; border-radius: 50%; }
.login-panel { display: grid; place-items: center; padding: 3rem clamp(1.4rem, 5vw, 5rem); }
.login-card { width: 100%; max-width: 410px; }
.login-card h2 { margin: .85rem 0 .55rem; font-size: clamp(2rem, 3vw, 2.45rem); }
.login-card > .muted { margin-bottom: 2rem; font-size: .88rem; }
.login-card .notice { margin-bottom: 1.5rem; }
.login-card .form-stack { gap: 1.35rem; }
.login-card .button-primary { margin-top: .55rem; }
.login-footnote { margin: 2rem 0 0; color: #8b9a9e; text-align: center; font-size: .72rem; }
.login-mobile-brand { display: none; }
/* Basic styling remains available to existing organization and agent pages. */
.page-content > h1 { margin-bottom: 1rem; }
.page-content > section { margin: 1.2rem 0; padding: 1.5rem; background: #fff; border: 1px solid var(--line); border-radius: .9rem; box-shadow: var(--shadow); }
.page-content section > h2 { margin-bottom: 1rem; }
.page-content section > form { display: grid; gap: .8rem; max-width: 620px; }
.page-content section label { display: grid; gap: .35rem; font-size: .81rem; font-weight: 650; }
.page-content section table { width: 100%; border-collapse: collapse; }
.page-content section th, .page-content section td { padding: .7rem; border-bottom: 1px solid var(--line); text-align: left; }
.page-content section button:not(.button) { padding: .55rem .8rem; border: 1px solid #a7c8c0; border-radius: .48rem; color: var(--brand-dark); background: #f3faf7; font-weight: 650; }
.page-content section button:not(.button):hover { background: #e3f2eb; }
@media (max-width: 1100px) {
    .platform-grid { grid-template-columns: minmax(0, 1fr); }
    .create-panel { max-width: 650px; width: 100%; }
    .organization-module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .organization-information-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 780px) {
    .app-frame { display: block; }
    .sidebar { display: none; }
    .topbar { min-height: 66px; padding: 0 1.15rem; }
    .mobile-menu { display: block; }
    .mobile-menu summary { display: flex; align-items: center; gap: .45rem; padding: .5rem; border-radius: .5rem; cursor: pointer; list-style: none; font-size: .77rem; font-weight: 700; }
    .mobile-menu summary::-webkit-details-marker { display: none; }
    .mobile-menu nav { position: absolute; z-index: 5; top: calc(100% + .6rem); left: 0; width: 210px; display: grid; padding: .4rem; border: 1px solid var(--line); border-radius: .7rem; background: #fff; box-shadow: 0 12px 25px rgba(0, 0, 0, .1); }
    .mobile-menu nav a { padding: .7rem; border-radius: .4rem; text-decoration: none; font-size: .8rem; }
    .mobile-menu nav a:hover { background: var(--brand-soft); }
    .topbar-location { display: none; }
    .page-content { padding: 1.7rem 1.15rem; }
    .login-shell { grid-template-columns: 1fr; }
    .login-story { display: none; }
    .login-panel { min-height: 100vh; padding: 2rem 1.5rem; }
    .login-mobile-brand { display: flex; align-items: center; gap: .65rem; margin-bottom: 4rem; font-size: 1.2rem; letter-spacing: -.04em; }
}
@media (max-width: 540px) {
    .page-heading { align-items: start; flex-direction: column; margin-bottom: 1.5rem; }
    .page-heading .button { width: 100%; }
    .organization-heading { margin-bottom: 0; }
    .organization-section-heading { align-items: start; flex-direction: column; }
    .organization-module-grid { grid-template-columns: minmax(0, 1fr); }
    .organization-module-card { min-height: 165px; }
    .organization-module-card--inbox { display: flex; align-items: stretch; gap: .85rem; }
    .organization-module-card--inbox .organization-module-icon { align-self: start; }
    .organization-module-card--inbox .organization-module-action, .organization-module-card--inbox .organization-module-state { margin-top: auto; }
    .organization-module-action { width: 100%; }
    .organization-plan > p { padding-left: 1.3rem; padding-right: 1.3rem; }
    .whatsapp-qr-panel-heading { align-items: start; flex-direction: column; }
    .whatsapp-qr-actions { align-items: stretch; flex-direction: column; }
    .whatsapp-qr-actions form, .whatsapp-qr-actions .button { width: 100%; }
    .organization-settings-note { padding: 0 1.3rem; }
    .user-copy { display: none; }
    .topbar-user { gap: .35rem; }
    .overview-note { display: none; }
    .overview-strip { min-height: 88px; }
    .panel-heading { padding: 1.3rem; }
    .panel-intro, .create-panel .form-stack { padding-left: 1.3rem; padding-right: 1.3rem; }
    .data-table th, .data-table td { padding-left: 1rem; padding-right: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
