/* Identité SMRT et espaces métier. Sans dépendance à une bibliothèque d’interface. */
:root {
    --navy: #101b35;
    --ink: #14213b;
    --muted: #56657b;
    --line: #e0e7f0;
    --light: #f5f7fb;
    --brand-font: system-ui, sans-serif;
}
body,
button,
input,
select,
textarea,
h1,
h2,
h3,
h4,
.brand-copy strong,
.price,
.summary-total > strong {
    font-family: var(--brand-font);
}
body {
    font-size: 15px;
    overflow-wrap: break-word;
}
h1,
h2,
h3,
h4 {
    letter-spacing: -0.035em;
}
a,
button,
input,
select,
textarea,
summary {
    touch-action: manipulation;
}
:focus-visible {
    outline: 3px solid #0891b2;
    outline-offset: 4px;
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline-offset: 1px;
}
input,
select,
textarea {
    max-width: 100%;
    min-width: 0;
}
textarea {
    resize: vertical;
}
label > small {
    display: block;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 400;
    margin-top: 6px;
}
.button {
    border-radius: 10px;
    box-shadow: 0 4px 12px #2563eb12;
}
.button-small {
    min-height: 42px;
}
.button-outline {
    box-shadow: none;
}
.button:hover {
    transform: none;
}
.main-nav [aria-current="page"] {
    color: var(--blue) !important;
}
.nav-wrap {
    gap: 18px;
}
.brand {
    min-width: 220px;
}
.brand-copy strong {
    font-size: 1rem;
}
.brand-copy small {
    color: #5e6b80;
    max-width: 220px;
}
.brand-mark {
    background: #f2f6fc;
    border: 1px solid #e0e7f0;
}
.main-nav {
    gap: 17px;
}
.nav-more {
    position: relative;
}
.nav-more summary {
    cursor: pointer;
    color: #555f71;
    font-size: 0.84rem;
    font-weight: 600;
    white-space: nowrap;
    list-style: none;
}
.nav-more summary:after {
    content: "⌄";
    margin-left: 7px;
}
.nav-more > div {
    position: absolute;
    top: 35px;
    right: 0;
    min-width: 210px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 15px 30px #101b3514;
}
.nav-more a {
    display: block;
    padding: 10px;
    color: var(--ink);
    font-size: 0.85rem;
}
.nav-more a:hover {
    background: #f2f6fc;
    border-radius: 7px;
}
.workspace-page {
    background: var(--light);
}
.workspace-page .site-header {
    background: #fff;
    backdrop-filter: none;
}
.workspace-page .nav-wrap {
    width: calc(100% - 48px);
    max-width: none;
    min-height: 78px;
}
.workspace-layout {
    display: grid;
    grid-template-columns: 242px minmax(0, 1fr);
    min-height: calc(100vh - 78px);
}
.workspace-sidebar {
    background: #101b35;
    color: #e4ebf8;
    position: sticky;
    top: 78px;
    height: calc(100dvh - 78px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #3c4d70 #101b35;
}
.workspace-nav {
    padding: 24px 14px 28px;
}
.workspace-identity {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 8px 22px;
    border-bottom: 1px solid #ffffff18;
    margin-bottom: 16px;
}
.workspace-avatar {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 39px;
    height: 39px;
    border-radius: 12px;
    background: #2e4581;
    color: #fff;
    font-weight: 700;
}
.workspace-identity > div {
    min-width: 0;
}
.workspace-identity strong,
.workspace-identity small {
    display: block;
}
.workspace-identity strong {
    font-size: 0.82rem;
    overflow-wrap: anywhere;
}
.workspace-identity small {
    font-size: 0.69rem;
    color: #a5b5d3;
    margin-top: 3px;
}
.workspace-group-label {
    display: block;
    padding: 9px 11px 8px;
    color: #91a7cb;
    font-size: 0.63rem;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}
.workspace-nav-group {
    margin: 9px 0 18px;
}
.workspace-nav-group > a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    min-height: 42px;
    color: #d4def1;
    border-radius: 8px;
    font-size: 0.79rem;
    font-weight: 550;
    margin: 2px 0;
    transition: background 0.15s;
}
.workspace-nav-group > a > span {
    width: 19px;
    color: #9ab3df;
    font-size: 1.05rem;
    text-align: center;
    flex-shrink: 0;
}
.workspace-nav-group > a:hover {
    background: #ffffff0d;
    color: #fff;
}
.workspace-nav-group > a.is-active {
    background: var(--blue);
    color: #fff;
}
.workspace-nav-group > a.is-active > span {
    color: #fff;
}
.workspace-back {
    display: block;
    margin: 24px 12px 0;
    color: #aebfdd;
    font-size: 0.76rem;
}
.workspace-toggle {
    display: none;
}
.workspace-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.workspace-main > .main-content {
    flex: 1;
    min-width: 0;
}
.workspace-page .container {
    width: calc(100% - 64px);
    max-width: 1280px;
}
.workspace-page .dashboard-head {
    padding: 36px 0 30px;
    background: #fff;
    border-bottom: 1px solid var(--line);
}
.workspace-page .dashboard-head h1 {
    font-size: clamp(1.8rem, 2.8vw, 2.45rem);
    margin: 3px 0 11px;
}
.workspace-page .dashboard-head .eyebrow {
    font-size: 0.64rem;
    margin-bottom: 6px;
}
.workspace-page .dashboard-head p {
    font-size: 0.87rem;
    max-width: 670px;
    margin-bottom: 0;
    color: #66758d;
}
.workspace-page .section {
    padding: 30px 0 44px;
}
.workspace-page .section h2 {
    font-size: 1.25rem;
}
.workspace-page .page-hero {
    padding: 32px 0;
}
.workspace-page .page-hero h1 {
    font-size: 2rem;
}
.workspace-page .flashes .alert {
    margin: 18px 0 0;
}
.workspace-footer {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 20px 32px;
    border-top: 1px solid var(--line);
    font-size: 0.69rem;
    color: #65748e;
    background: #fff;
}
.head-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.head-actions .button {
    font-size: 0.76rem;
    min-height: 43px;
    padding: 10px 14px;
}
.ops-priority {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border: 1px solid #d2e1fd;
    border-radius: 14px;
    background: linear-gradient(110deg, #edf4ff, #fff);
    padding: 22px 24px;
    margin-bottom: 24px;
}
.ops-priority strong {
    font-size: 0.95rem;
    color: #173d77;
}
.ops-priority p {
    font-size: 0.78rem;
    color: #536d93;
    margin: 5px 0 0 17px;
}
.priority-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: var(--blue);
    border-radius: 50%;
    margin-right: 10px;
    vertical-align: middle;
}
.ops-stats {
    gap: 16px;
    margin-bottom: 24px;
}
.ops-stats .stat-card {
    border-radius: 13px;
    padding: 22px;
    box-shadow: 0 2px 4px #101b3502;
    min-width: 0;
}
.stat-card > span {
    color: #5e6b80;
}
.stat-card > small {
    color: #65758e;
}
.stat-card > strong {
    font-size: 2.15rem;
    letter-spacing: -0.045em;
}
.stat-card > strong.money-stat {
    font-size: clamp(1.15rem, 1.9vw, 1.75rem);
    white-space: normal;
}
.ops-workspace-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(250px, 1fr);
    gap: 22px;
    margin-bottom: 28px;
}
.content-panel {
    border-radius: 13px;
    border-color: #e0e7f0;
    min-width: 0;
}
.panel-heading {
    gap: 14px;
}
.panel-heading h2 {
    font-size: 1.15rem;
    margin: 0 0 5px;
}
.panel-heading p {
    font-size: 0.8rem;
}
.panel-heading .eyebrow {
    font-size: 0.6rem;
    margin-bottom: 9px;
}
.table-scroll {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    max-width: 100%;
}
.table-scroll table {
    min-width: 640px;
}
.table-scroll td > small {
    display: block;
    font-size: 0.68rem;
    color: #66758d;
    margin-top: 4px;
}
.table-scroll td {
    max-width: 320px;
    white-space: normal;
    vertical-align: top;
}
.table-scroll td strong {
    font-size: 0.79rem;
}
.table-scroll th {
    color: #596a83;
    background: #fafbfd;
}
.timeline-date small {
    display: block;
    color: #70809a;
    font-size: 0.65rem;
    margin-top: 3px;
}
.ops-small-heading {
    margin: 0 0 18px;
}
.ops-small-heading h2 {
    font-size: 1.35rem !important;
}
.ops-small-heading .eyebrow {
    font-size: 0.63rem;
    margin-bottom: 8px;
}
.ops-quick-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.ops-quick-grid > a {
    position: relative;
    padding: 22px;
    border-radius: 13px;
    min-width: 0;
}
.ops-quick-grid > a > span {
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
}
.ops-quick-grid strong {
    font-size: 0.81rem;
}
.ops-quick-grid small {
    font-size: 0.72rem;
    color: #66758d;
}
.ops-quick-grid b {
    position: absolute;
    right: 20px;
    top: 22px;
    font-size: 1rem;
    color: #6b82ac;
}
.status {
    white-space: normal;
    line-height: 1.4;
}
.status-open,
.status-new {
    background: #eaf2ff;
    color: #1e4f96;
}
.status-pending,
.status-high {
    background: #fff2d7;
    color: #805800;
}
.status-closed,
.status-read {
    background: #edf3f0;
    color: #3d6651;
}
.status-published {
    background: #e4f6ec;
    color: #16603a;
}
.tab-nav {
    display: flex;
    gap: 6px;
    border-bottom: 1px solid #dce4ef;
    margin-bottom: 24px;
    overflow-x: auto;
    white-space: nowrap;
    max-width: 100%;
}
.tab-nav > a {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 16px;
    border-bottom: 3px solid transparent;
    font-size: 0.83rem;
    font-weight: 650;
    color: #5d6b83;
}
.tab-nav > a.is-active {
    border-bottom-color: var(--blue);
    color: var(--blue);
}
.tab-nav span {
    background: #e8edf5;
    color: #536d96;
    min-width: 22px;
    padding: 1px 6px;
    text-align: center;
    border-radius: 5px;
    font-size: 0.68rem;
}
.filter-bar {
    margin-bottom: 22px;
}
.filter-bar label {
    font-size: 0.75rem;
    color: #56657b;
}
.filter-bar input,
.filter-bar select {
    min-height: 44px;
}
.filter-bar input[type="date"] {
    width: auto;
    min-width: 160px;
}
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 22px 0 0;
    font-size: 0.73rem;
    color: #65758c;
}
.export-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
    gap: 12px;
}
.export-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #f8faff;
    border: 1px solid #dde6f3;
    border-radius: 11px;
    padding: 19px;
    color: var(--ink);
}
.export-card > span {
    display: grid;
    place-items: center;
    width: 31px;
    height: 31px;
    border-radius: 8px;
    background: #e6eeff;
    color: var(--blue);
    font-size: 1.1rem;
    margin-bottom: 7px;
}
.export-card strong {
    font-size: 0.82rem;
}
.export-card small {
    font-size: 0.64rem;
    color: #65758c;
}
.export-card:hover {
    border-color: var(--blue);
}
.audit-table {
    min-width: 760px !important;
}
.audit-table td {
    font-size: 0.74rem;
}
.audit-table code {
    font-size: 0.7rem;
    overflow-wrap: anywhere;
}
.audit-table details {
    max-width: 260px;
}
.audit-table summary {
    cursor: pointer;
    color: var(--blue);
}
.audit-table pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-size: 0.67rem;
    background: #f5f7fb;
    padding: 10px;
    border-radius: 8px;
    max-height: 250px;
    overflow: auto;
}
.support-layout,
.cms-layout {
    display: grid;
    grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.8fr);
    align-items: start;
    gap: 24px;
}
.support-layout > .content-panel {
    margin-bottom: 0;
}
.ticket-list {
    display: grid;
    gap: 9px;
}
.ticket-link {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
    color: var(--ink);
    background: #fff;
}
.ticket-link:hover,
.ticket-link.is-active {
    background: #f4f8ff;
    border-color: #b7cff7;
}
.ticket-link > strong {
    font-size: 0.84rem;
    overflow-wrap: anywhere;
}
.ticket-link > span:not(.status) {
    font-size: 0.74rem;
    color: #566b8e;
    overflow-wrap: anywhere;
}
.ticket-link small {
    font-size: 0.67rem;
    color: #63738c;
}
.ticket-link > .status {
    align-self: flex-start;
}
.ticket-tags {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}
.ticket-management {
    padding: 18px;
    border: 1px solid #dde7f7;
    background: #f8faff;
    border-radius: 11px;
    margin-bottom: 24px;
}
.support-thread {
    display: grid;
    gap: 16px;
    margin: 24px 0;
}
.thread-message {
    padding: 18px;
    border: 1px solid #dee7f3;
    background: #f7f9fc;
    border-radius: 12px;
    min-width: 0;
}
.thread-message.from-team {
    background: #edf4ff;
    border-color: #d5e5ff;
}
.thread-message.is-internal {
    background: #fff9e9;
    border-color: #eee0b4;
}
.thread-message > div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.thread-message strong {
    font-size: 0.78rem;
}
.thread-message time {
    font-size: 0.65rem;
    color: #64748b;
}
.thread-message p {
    font-size: 0.85rem;
    color: #364861;
    margin: 0;
    overflow-wrap: anywhere;
    line-height: 1.8;
}
.reply-form {
    margin-top: 25px;
    padding-top: 23px;
    border-top: 1px solid var(--line);
}
.contact-message-body {
    padding: 20px;
    background: #f6f8fc;
    border: 1px solid var(--line);
    border-radius: 11px;
    margin: 20px 0;
    font-size: 0.9rem;
    line-height: 1.9;
}
.inbox-empty {
    border: 0;
    padding: 100px 15px;
    margin: 0;
    min-height: 380px;
}
.inbox-empty h2 {
    font-size: 1.4rem !important;
}
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 9px;
    line-height: 1.6;
}
.checkbox-label input {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.cms-content-list {
    display: grid;
    gap: 8px;
}
.cms-content-list > a {
    display: block;
    padding: 14px;
    border: 1px solid #e0e7f0;
    border-radius: 10px;
    color: var(--ink);
}
.cms-content-list > a:hover,
.cms-content-list > a.is-active {
    background: #f0f5ff;
    border-color: #bed1f4;
}
.cms-content-list strong {
    font-size: 0.82rem;
    display: block;
    overflow-wrap: anywhere;
}
.cms-content-list small {
    font-size: 0.67rem;
    color: #66768d;
    display: block;
    margin-top: 4px;
}
.cms-layout .help-panel {
    margin-top: 20px;
}
.cms-layout .help-panel p {
    font-size: 0.72rem;
    line-height: 1.8;
}
.form-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}
.cms-brand-form {
    max-width: 930px;
    margin: auto;
}
.brand-preview {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f8faff;
    margin-bottom: 25px;
}
.brand-preview > img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 9px;
}
.brand-preview strong,
.brand-preview span {
    display: block;
}
.brand-preview span {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 5px;
}
.cms-brand-form hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 28px 0;
}
.cms-brand-form input[type="color"] {
    height: 48px;
    padding: 5px;
}
.revision-list > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 14px 0;
    border-bottom: 1px solid #edf1f6;
    font-size: 0.75rem;
}
.revision-list small {
    display: block;
    margin-top: 4px;
    color: #66768d;
}
.cms-preview {
    margin-top: 25px;
    border: 1px solid #dce5f1;
    border-radius: 10px;
    padding: 14px;
}
.cms-preview > summary {
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 700;
    color: #455f86;
}
.cms-preview > div {
    padding: 20px 0 0;
}
.cms-preview img {
    max-height: 250px;
    object-fit: contain;
}
.cms-page-body {
    font-size: 1.03rem;
    line-height: 1.9;
    min-height: 220px;
}
.cms-custom-section p {
    line-height: 1.9;
}
.cms-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 45px;
}
.cms-section-image {
    border-radius: 20px;
    width: 100%;
    height: 100%;
    max-height: 440px;
    object-fit: cover;
}
.hero-custom-image {
    width: 100%;
    max-height: 480px;
    height: 100%;
    object-fit: cover;
    border-radius: 26px;
    box-shadow: 0 20px 70px #101b3520;
}
.public-page .hero-section {
    background:
        radial-gradient(circle at 80% 30%, #dceaff85, transparent 42%),
        linear-gradient(125deg, #f7faff, #fff 52%, #f0f7ff);
}
.hero-copy h1 {
    font-size: clamp(2.6rem, 4.4vw, 4.2rem);
    letter-spacing: -0.055em;
}
.hero-lead {
    font-size: 1.06rem;
    color: #5b6b82;
}
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}
.process-grid article {
    position: relative;
    background: #fff;
    border: 1px solid #e0e8f3;
    border-radius: 16px;
    padding: 28px;
}
.process-grid article > span {
    display: grid;
    place-items: center;
    background: #eaf2ff;
    color: var(--blue);
    width: 41px;
    height: 41px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 750;
    margin-bottom: 20px;
}
.process-grid h3 {
    font-size: 1.05rem;
}
.process-grid p {
    font-size: 0.82rem;
    line-height: 1.8;
    margin: 0;
}
.home-faq-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 65px;
    align-items: start;
}
.faq-list {
    display: grid;
    gap: 12px;
}
.faq-item {
    background: #fff;
    border: 1px solid #dfe7f1;
    border-radius: 12px;
    overflow: hidden;
}
.faq-item > summary {
    padding: 20px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    list-style: none;
    cursor: pointer;
    font-size: 0.91rem;
    font-weight: 650;
    line-height: 1.6;
}
.faq-item > summary::-webkit-details-marker {
    display: none;
}
.faq-item > summary > span {
    flex-shrink: 0;
    color: var(--blue);
    font-size: 1.2rem;
}
.faq-item[open] > summary > span {
    transform: rotate(45deg);
}
.faq-item > div {
    padding: 0 22px 22px;
    color: #596a82;
    font-size: 0.88rem;
    line-height: 1.9;
}
.faq-page {
    max-width: 900px;
}
.help-cta {
    margin-top: 40px;
    padding: 35px;
    text-align: center;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 16px;
}
.help-cta h2 {
    font-size: 1.6rem;
}
.testimonial-card {
    margin: 0;
    padding: 30px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
}
.testimonial-card blockquote {
    font-size: 0.95rem;
    line-height: 1.9;
    color: #435673;
    margin: 0 0 22px;
}
.testimonial-card figcaption {
    font-size: 0.83rem;
    font-weight: 750;
    color: var(--ink);
}
.site-footer p,
.site-footer a {
    overflow-wrap: anywhere;
}
.whatsapp-float {
    position: fixed;
    bottom: 22px;
    right: 22px;
    z-index: 80;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 17px;
    border-radius: 50px;
    background: #147d49;
    color: white;
    box-shadow: 0 8px 25px #0b4b3b30;
    font-size: 0.8rem;
    font-weight: 700;
}
.whatsapp-float:hover {
    color: #fff;
    background: #11633d;
}
.whatsapp-float > span:first-child {
    font-size: 1.15rem;
}
@media (min-width: 851px) {
    .workspace-page .main-nav > a:not(.nav-dashboard):not(.cart-link),
    .workspace-page .main-nav .nav-more {
        display: none;
    }
    .workspace-page .main-nav:before {
        content: "Espace de gestion";
        font-size: 0.73rem;
        color: #74819a;
        margin-right: 10px;
    }
    .workspace-page .nav-logout .link-button {
        font-size: 0.75rem;
    }
    .workspace-page .brand-copy small {
        max-width: 300px;
    }
}
@media (max-width: 1280px) {
    .workspace-layout {
        grid-template-columns: 215px minmax(0, 1fr);
    }
    .workspace-page .container {
        width: calc(100% - 44px);
    }
    .ops-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .ops-quick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .ops-workspace-grid {
        grid-template-columns: 1fr;
    }
    .ops-workspace-grid > .content-panel {
        margin: 0;
    }
    .workspace-nav {
        padding-inline: 10px;
    }
    .workspace-nav-group > a {
        font-size: 0.75rem;
        padding-inline: 10px;
    }
    .support-layout,
    .cms-layout {
        grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.4fr);
    }
    .process-grid {
        gap: 14px;
    }
    .process-grid article {
        padding: 22px;
    }
}
@media (max-width: 1100px) {
    .public-page .nav-toggle {
        display: block;
        flex-shrink: 0;
    }
    .public-page .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        padding: 18px 22px 23px;
        border-bottom: 1px solid #dfe6f1;
        box-shadow: 0 18px 30px #0d254a14;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    .public-page .main-nav.is-open {
        display: flex;
    }
    .public-page .main-nav > a:not(.button),
    .public-page .main-nav .link-button {
        padding: 12px 0;
        text-align: left;
        border-bottom: 1px solid #f0f2f6;
    }
    .public-page .main-nav .button {
        margin-top: 13px;
    }
    .public-page .main-nav .nav-logout {
        padding: 11px 0;
    }
    .public-page .main-nav .nav-logout .link-button {
        border: 0;
        padding: 0;
    }
    .nav-more > div {
        position: static;
        border: 0;
        box-shadow: none;
        padding: 0 10px;
    }
    .nav-more summary {
        padding: 12px 0;
    }
    .public-page .nav-wrap {
        min-height: 76px;
    }
    .workspace-page .dashboard-heading-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }
    .support-layout,
    .cms-layout {
        grid-template-columns: 1fr;
    }
    .support-layout > .content-panel:first-child,
    .cms-layout > aside {
        max-height: 420px;
        overflow: auto;
    }
    .support-layout .ticket-list,
    .cms-content-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .home-faq-grid {
        gap: 35px;
    }
    .stat-card > strong.money-stat {
        font-size: 1.6rem;
    }
}
@media (max-width: 850px) {
    .workspace-layout {
        display: block;
    }
    .workspace-sidebar {
        position: static;
        top: auto;
        height: auto;
        overflow: visible;
        background: #101b35;
    }
    .workspace-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        border: 0;
        color: #fff;
        background: #101b35;
        padding: 14px 22px;
        min-height: 49px;
        font-size: 0.82rem;
        font-weight: 650;
    }
    .workspace-nav {
        display: none;
        max-height: 70dvh;
        overflow: auto;
        padding: 15px 17px 25px;
    }
    .workspace-nav.is-open {
        display: block;
    }
    .workspace-nav-group {
        margin-bottom: 13px;
    }
    .workspace-nav-group > a {
        font-size: 0.83rem;
        min-height: 44px;
    }
    .workspace-page .nav-wrap {
        min-height: 73px;
        width: calc(100% - 34px);
    }
    .workspace-page .container {
        width: calc(100% - 34px);
    }
    .workspace-page .dashboard-head {
        padding: 29px 0;
    }
    .workspace-page .section {
        padding: 25px 0 35px;
    }
    .workspace-footer {
        padding: 20px 17px;
        flex-wrap: wrap;
        gap: 7px;
    }
    .workspace-identity {
        padding-bottom: 16px;
    }
    .hero-copy h1 {
        font-size: clamp(2.5rem, 7vw, 3.7rem);
    }
    .home-faq-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .cms-image-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .brand-copy small {
        max-width: 220px;
    }
    .workspace-page .brand-copy small {
        max-width: 250px;
    }
    .head-actions .button {
        font-size: 0.75rem;
    }
}
@media (max-width: 560px) {
    body {
        font-size: 14px;
    }
    .brand {
        min-width: 0;
        gap: 8px;
    }
    .brand-copy strong {
        font-size: 0.88rem;
    }
    .brand-copy small {
        font-size: 0.58rem;
        max-width: 220px;
    }
    .workspace-page .brand-copy small {
        max-width: 220px;
    }
    .brand-mark {
        width: 42px;
        height: 42px;
        flex-shrink: 0;
    }
    .workspace-page .nav-wrap {
        width: calc(100% - 28px);
    }
    .workspace-page .container {
        width: calc(100% - 28px);
    }
    .workspace-page .dashboard-head h1 {
        font-size: 1.85rem;
        line-height: 1.2;
    }
    .workspace-page .dashboard-head p {
        font-size: 0.81rem;
    }
    .ops-priority {
        align-items: stretch;
        flex-direction: column;
        gap: 15px;
        padding: 19px;
    }
    .ops-priority strong {
        font-size: 0.87rem;
    }
    .ops-priority p {
        font-size: 0.74rem;
    }
    .ops-priority .button {
        width: 100%;
    }
    .ops-stats {
        gap: 11px;
    }
    .ops-stats .stat-card {
        padding: 18px 14px;
    }
    .ops-stats .stat-card > span {
        font-size: 0.7rem;
    }
    .ops-stats .stat-card > strong {
        font-size: 1.9rem;
    }
    .ops-stats .stat-card > strong.money-stat {
        font-size: 1.18rem;
    }
    .ops-stats .stat-card > small {
        font-size: 0.65rem;
        line-height: 1.6;
    }
    .ops-quick-grid {
        gap: 11px;
    }
    .ops-quick-grid > a {
        padding: 18px 15px;
    }
    .ops-quick-grid b {
        right: 13px;
        top: 18px;
    }
    .ops-quick-grid strong {
        font-size: 0.76rem;
    }
    .ops-quick-grid small {
        font-size: 0.66rem;
    }
    .ops-workspace-grid {
        gap: 17px;
    }
    .panel-heading {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 12px;
    }
    .tab-nav > a {
        font-size: 0.75rem;
        padding: 12px;
    }
    .support-layout .ticket-list,
    .cms-content-list {
        grid-template-columns: 1fr;
    }
    .support-layout > .content-panel:first-child,
    .cms-layout > aside {
        max-height: 350px;
    }
    .content-panel {
        padding: 20px 17px;
    }
    .content-panel.table-panel {
        padding: 0 0 15px;
    }
    .table-panel > .panel-heading {
        padding: 20px 17px 0;
    }
    .ticket-management {
        padding: 15px;
    }
    .thread-message {
        padding: 16px;
    }
    .thread-message > div {
        gap: 5px;
    }
    .reply-form .button,
    .form-actions .button {
        width: 100%;
    }
    .form-actions {
        gap: 10px;
    }
    .revision-list > div {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }
    .revision-list form {
        width: 100%;
    }
    .revision-list button {
        width: 100%;
    }
    .brand-preview {
        padding: 16px;
        gap: 14px;
    }
    .brand-preview > img {
        width: 60px;
        height: 60px;
    }
    .brand-preview strong {
        font-size: 0.86rem;
    }
    .brand-preview span {
        font-size: 0.72rem;
    }
    .head-actions {
        width: 100%;
    }
    .head-actions .button {
        flex: 1;
        padding-inline: 9px;
        min-width: 0;
    }
    .process-grid {
        grid-template-columns: 1fr 1fr;
        gap: 11px;
    }
    .process-grid article {
        padding: 20px 16px;
    }
    .process-grid h3 {
        font-size: 0.95rem;
    }
    .process-grid p {
        font-size: 0.75rem;
    }
    .process-grid article > span {
        margin-bottom: 14px;
    }
    .faq-item > summary {
        padding: 18px;
        font-size: 0.85rem;
    }
    .faq-item > div {
        padding: 0 18px 18px;
        font-size: 0.82rem;
    }
    .help-cta {
        padding: 26px 20px;
    }
    .help-cta h2 {
        font-size: 1.4rem;
    }
    .hero-copy h1 {
        font-size: 2.45rem;
    }
    .hero-lead {
        font-size: 0.97rem;
    }
    .hero-custom-image {
        max-height: 360px;
    }
    .whatsapp-float {
        bottom: 14px;
        right: 14px;
        padding: 11px 14px;
    }
    .whatsapp-float > span:last-child {
        display: none;
    }
    .filter-bar input[type="date"] {
        width: 100%;
        min-width: 0;
    }
    .inbox-empty {
        padding: 65px 10px;
        min-height: 280px;
    }
    .export-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .export-card {
        padding: 15px 12px;
    }
    .export-card strong {
        font-size: 0.75rem;
    }
    .export-card small {
        font-size: 0.59rem;
    }
}
@media (max-width: 360px) {
    .brand-copy small {
        max-width: 190px;
    }
    .workspace-page .brand-copy small {
        max-width: 190px;
    }
    .brand-copy strong {
        font-size: 0.81rem;
    }
    .process-grid {
        grid-template-columns: 1fr;
    }
    .ops-stats {
        grid-template-columns: 1fr;
    }
    .ops-stats .stat-card > strong.money-stat {
        font-size: 1.6rem;
    }
    .ops-quick-grid {
        grid-template-columns: 1fr;
    }
    .hero-copy h1 {
        font-size: 2.2rem;
    }
    .head-actions {
        flex-direction: column;
    }
    .head-actions .button {
        width: 100%;
    }
    .export-grid {
        grid-template-columns: 1fr;
    }
}
.thread-attachment {
    display: inline-flex;
    gap: 8px;
    padding: 9px 12px;
    border: 1px solid #cbd9ef;
    border-radius: 8px;
    background: #fff;
    margin-top: 15px;
    font-size: 0.76rem;
    font-weight: 650;
    max-width: 100%;
    overflow-wrap: anywhere;
    min-height: 42px;
    align-items: center;
}
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
        scroll-behavior: auto !important;
    }
}
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}
.panel {
    min-width: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 24px;
}
.panel h2 {
    font-size: 1.35rem;
}
.table-wrap {
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.panel code {
    overflow-wrap: anywhere;
}
.pagination {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}
.environment-banner {
    padding: 7px 18px;
    text-align: center;
    font-size: 0.72rem;
    color: #334155;
    background: #e2e8f0;
    border-bottom: 1px solid #cbd5e1;
    overflow-wrap: anywhere;
}
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .panel {
        padding: 20px 16px;
    }
}
