.ak-widget{--ak-ink:#202124;--ak-accent:#ffcf36;--ak-border:#dddcd6;--ak-muted:#555650;--ak-space:max(16px,env(safe-area-inset-left),env(safe-area-inset-right));position:fixed;inset-inline-start:var(--ak-space);bottom:max(20px,env(safe-area-inset-bottom));z-index:980;color:var(--ak-ink);font-family:inherit;font-size:16px;line-height:1.5;text-align:start}
.ak-widget.ak-end{inset-inline-start:auto;inset-inline-end:var(--ak-space)}
.ak-widget:has(.ak-panel[open]){z-index:8000}
.modal-open .ak-widget,body:has(.mfp-wrap) .ak-widget{visibility:hidden}
.ak-widget [hidden]{display:none!important}
.ak-widget,.ak-widget *{box-sizing:border-box}
.ak-widget button{font-family:inherit;cursor:pointer;line-height:1.25;text-transform:none;letter-spacing:normal}
.ak-widget button:disabled{opacity:.55;cursor:default}
.ak-widget :focus-visible{outline:3px solid #186bb6;outline-offset:2px}
.ak-widget .ak-launch{display:grid;place-items:center;width:52px;height:52px;background:var(--ak-accent);color:var(--ak-ink);border:1px solid #302d23;border-radius:50%;box-shadow:0 4px 16px #0002;margin:0}
.ak-widget .ak-panel {
    position: fixed;
    inset: 0;
    margin: auto;
    width: 80vw;
    height: 80vh;
    height: 80dvh;
    max-width: none;
    max-height: none;
    padding: 0;
    overflow: hidden;
    background: white;
    color: var(--ak-ink);
    border: 1px solid var(--ak-border);
    border-radius: 18px;
    box-shadow: 0 18px 70px #12232333;
    font: inherit;
    text-align: start;
}
.ak-panel[open] { display: flex; flex-direction: column }
.ak-panel::backdrop { background: rgb(15 25 28 / 52%) }
html:has(.ak-panel:modal), body:has(.ak-panel:modal) { overflow: hidden }
.ak-head {
    display: flex;
    align-items: center;
    flex: none;
    gap: 4px;
    padding: 6px clamp(6px, 1.6vw, 24px);
    border-bottom: 1px solid var(--ak-border);
}
.ak-head h2 { flex: 1; min-width: 0; margin: 0; color: inherit; font-weight: 600; font-family: inherit; font-size: clamp(14px, 1.5vw, 18px); line-height: 1.25; text-align: center }
.ak-panel button { border: 0; border-radius: 10px; background: transparent; color: inherit; min-height: 44px; padding: 6px 10px; font: inherit }
.ak-panel button:hover:not(:disabled) { background: #edf1ef }
.ak-head button, .ak-form .ak-mic, .ak-form .ak-send { display: grid; place-items: center; width: 44px; height: 44px; flex: none; padding: 0 }
.ak-head svg, .ak-send svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round }
.ak-head .ak-booking-link { position: relative; color: inherit }
.ak-booking-link [data-appointment-count] { position: absolute; inset-block-start: 0; inset-inline-end: 0; min-width: 16px; padding-inline: 3px; font-size: 10px; line-height: 16px }
.ak-log, .ak-history { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; overflow-wrap: anywhere }
.ak-log, .ak-history, .ak-workspace { padding: 20px max(14px, calc((100% - 760px) / 2)) }
.ak-log:has(> p:only-child), .ak-history:has(> p:only-child) { display: grid; place-items: center; text-align: center }
.ak-history button { display: block; width: 100%; text-align: start; border-bottom: 1px solid var(--ak-border) }
.ak-msg { margin: 0 0 20px; text-align: start; white-space: pre-wrap; line-height: 1.55 }
.ak-msg.ak-user { width: fit-content; max-width: 88%; margin-inline-end: auto; padding: 10px 16px; border-radius: 16px; }
.ak-msg small { display: block; color: var(--ak-muted); font-size: 13px }
.ak-msg p, .ak-gate p { margin: 4px 0 }
.ak-msg ul { padding-inline-start: 22px; list-style: disc }
.ak-msg a { display: block }
.ak-panel a, .ak-log button { color: #205451; text-decoration: underline }
.ak-status, .ak-form { width: min(760px, calc(100% - 24px)); margin-inline: auto }
.ak-status { flex: none; font-size: 13px; color: var(--ak-muted); overflow-wrap: anywhere }
.ak-status:not(:empty) { padding-block: 4px }
.ak-panel .ak-latest { flex:none; align-self:center; margin-block:2px; padding:.25rem .75rem; border:1px solid var(--ak-border); border-radius:1rem; background:white; color:var(--ak-ink); font-size:.85rem }
.ak-project-mode .ak-latest { display:none }
.ak-form {
    display: flex;
    flex: none;
    flex-direction: column;
    gap: 3px;
    min-height: 0;
    margin-block: 4px 12px;
    padding: 9px 10px 6px;
    border: 1px solid #c9cfcd;
    border-radius: 22px;
    box-shadow: 0 2px 9px #1625230c;
}
.ak-file-picker { position: relative; display: grid; place-items: center; flex: none; width: 44px; height: 44px; margin: 0; margin-inline-end: auto; border-radius: 50%; font: 26px/1 sans-serif }
.ak-add-file { width:44px; height:44px; border:0; border-radius:50%; background:transparent; color:inherit; font:inherit; cursor:pointer }
.ak-file-menu { position:absolute; z-index:3; inset-inline-start:0; bottom:100%; width:max-content; max-width:80vw; padding:4px; border:1px solid var(--ak-border); border-radius:12px; background:white; box-shadow:0 4px 16px #10272526; font:1rem/1.4 system-ui }
.ak-file-menu button { display:block; width:100%; min-height:44px; padding:6px 12px; border:0; background:white; text-align:start; color:var(--ak-ink); cursor:pointer }
.ak-file-menu button:is(:focus-visible,:hover) { background:#edf3f1 }
.ak-chat-file-dialog[open] { display:flex; flex-direction:column; gap:.7rem }
.ak-chat-file-dialog > div { overflow:auto; min-height:0 }
.ak-chat-file-dialog > p { margin:0 }
.ak-chat-file-dialog > p:empty { display:none }
.ak-library-file { display:flex; align-items:center; gap:.65rem; min-height:48px; padding:.4rem; border-bottom:1px solid var(--ak-border); cursor:pointer }
.ak-library-file img { display:block; width:100%; height:76px; object-fit:contain }
.ak-library-file label { flex:1; min-width:0; margin:0; cursor:pointer; line-height:1.4 }
.ak-library-file label > * { display:block; margin-block:2px }
.ak-chat-file-dialog button.ak-library-preview { flex:none; width:clamp(78px,16vw,116px); padding:4px; cursor:zoom-in }
.ak-library-preview small { font-size:.8rem }
.ak-library-file :is(strong,small) { display:block }
.ak-library-file input { flex:none; accent-color:#205451 }
.ak-chat-file-dialog > button:enabled { background:#183c39; color:white }
.ak-draft-files { display: flex; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain; min-width: 0 }
.ak-attachment-status:empty, .ak-draft-files:empty { display: none }
.ak-file-tile { position: relative; display: grid; align-items: end; flex: 0 0 auto; width: clamp(84px, 18vw, 122px); aspect-ratio: 1; overflow: hidden; background: #edf1f0; border-radius: 10px }
.ak-file-tile img { position: absolute; width: 100%; height: 100%; object-fit: cover }
.ak-file-tile span { padding: 8px; overflow-wrap: anywhere; font-size: 13px; line-height: 1.3; visibility: hidden; }
.ak-file-tile button { position: absolute; inset-block-start: 4px; inset-inline-end: 4px; display: grid; place-items: center; box-sizing: border-box; width: 30px; height: 30px; min-height: 0; padding: 0; border: 1px solid #ccd2d0; border-radius: 50%; background: white; color: #183c39; line-height: 1 }
.ak-panel.ak-file-over { outline: 3px dashed #38736c; outline-offset: -4px }
.ak-msg.ak-user a { color: inherit; overflow-wrap: anywhere }
.ak-workspace fieldset label { display: block; overflow-wrap: anywhere }
.ak-workspace fieldset .ak-share-file { display: inline-flex; align-items: center; gap: .5rem; margin: .25rem; max-width: 100%; overflow-wrap: anywhere }
.ak-workspace .ak-share-file button { display: inline-flex; padding: 0; border: 0; cursor: zoom-in }
.ak-share-file img { width: 8rem; height: 6rem; object-fit: contain; border: 1px solid #d8dcd9; border-radius: .4rem; background: white }
.ak-form:focus-within { border-color: #708784 }
.ak-form textarea:focus { outline: none; box-shadow: none }
.ak-form textarea:placeholder-shown { direction: inherit; text-align: start }
.ak-form textarea {
    field-sizing: content;
    width: 100%;
    min-height: calc(1lh + 4px);
    max-height: min(calc(6lh + 4px), calc(var(--ak-view-height, 100vh) * .3));
    margin: 0;
    padding: 2px 5px;
    resize: none;
    overflow-y: auto;
    overscroll-behavior: contain;
    color: inherit;
    background: transparent;
    border: 0;
    font: inherit;
    line-height: 1.45;
}
@supports not (field-sizing: content) {
    .ak-form textarea { height: calc(1lh + 4px) }
    .ak-form textarea:not(:placeholder-shown) { height: var(--ak-draft-height, auto) }
}
.ak-compose-actions { display: flex; align-items: center; gap: 3px }
.ak-mic svg:not(:first-child), .ak-mic[data-icon="download"] svg:first-child, .ak-mic[data-icon="stop"] svg:first-child { display: none }
.ak-mic[data-icon="download"] .ak-download-icon, .ak-mic[data-icon="stop"] .ak-stop-icon { display: block }
.ak-mic[data-percent] .ak-download-icon { display: none }
.ak-mic[data-percent]::after { content: attr(data-percent); direction: ltr; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums }
.ak-form .ak-mic[data-remaining] { display: inline-flex; align-items: center; justify-content: center; gap: 4px; width: auto; min-width: 74px; padding-inline: 9px }
.ak-mic[data-remaining]::after { content: attr(data-remaining); white-space: nowrap; font-size: 13px; font-variant-numeric: tabular-nums }
.ak-dictation-status { flex: 1; min-width: 0; max-height: 44px; overflow: auto; margin: 0; font-size: 12px }
.ak-form .ak-send, .ak-form .ak-mic[aria-pressed="true"], .ak-gate [data-cmd=allow] { background: #183c39; color: white; border-radius: 24px }
.ak-form .ak-send:hover:not(:disabled), .ak-gate [data-cmd=allow]:hover { background: #29514e }
.ak-gate { width: min(420px, 100%); margin: auto; padding: 20px; overflow: auto; text-align: center }
.ak-gate button { display: block; margin: 16px auto 8px; padding-inline: 24px }
.ak-guest-actions { display: none; padding-inline: 14px; align-items: center; justify-content: space-between; font-size: 14px }
.ak-panel:has(.ak-sidebar:not([hidden])) .ak-guest-actions { display: flex }
.ak-guest-actions button { text-decoration: underline }
body:has(.cookie-panel:not([hidden])) .ak-widget, body:has(dialog[open]:not(.ak-panel,.ak-incoming-call,.ak-project-info)) .ak-widget, .ak-widget .ak-private { visibility: hidden }
@media (max-height: 480px) {
    .ak-form { margin-bottom: 6px }
    .ak-head { padding-block: 0 }
}
@media (max-width: 767px), (max-height: 540px) and (pointer: coarse) {
    .ak-widget .ak-panel {
        inset: var(--ak-view-top, 0px) auto auto var(--ak-view-left, 0px);
        margin: 0;
        width: var(--ak-view-width, 100vw);
        height: 100vh;
        height: var(--ak-view-height, 100dvh);
        padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
        border: 0;
        border-radius: 0;
    }
}

.assistant-work-preview { display: block; width: min(15rem, 100%); max-height: 11rem; object-fit: contain; margin-block: .5rem .25rem; }
.ak-panel button.ak-work-enlarge { display:block; max-width:100%; padding:0; border:0; background:transparent; cursor:zoom-in }
.ak-panel .ak-confirm-logo { display:block; margin-block:.5rem; padding:.35rem .75rem; border:1px solid var(--ak-border); border-radius:.5rem; color:var(--ak-ink); background:white }

.ak-project-nav,.ak-project-links{display:flex;flex-wrap:wrap;gap:.45rem;padding:.4rem .75rem}
.ak-project-composer .ak-compose-actions { justify-content: flex-end }
.ak-translation-controls { position:relative; border-block-end:1px solid var(--ak-border); padding-block-end:8px; margin-block-end:8px; font-size:.85rem; text-align:start }
.ak-translation-controls > label { display:flex; align-items:center; gap:8px; min-height:44px; padding-inline-end:140px; cursor:pointer; font-weight:600 }
.ak-translation-settings > summary { position:absolute; inset-block-start:0; inset-inline-end:0; display:flex; align-items:center; min-height:44px; max-width:135px; cursor:pointer; text-decoration:underline; text-underline-offset:3px }
.ak-translation-settings[open] { max-height:min(140px, calc(var(--ak-view-height, 100vh) * .14)); overflow-y:auto; overscroll-behavior:contain; padding-block-start:6px }
.ak-translation-controls input[type=checkbox] { width:18px; height:18px; accent-color:var(--ak-ink); flex:none }
.ak-translation-languages { display:flex; flex-wrap:wrap; gap:8px 16px }
.ak-translation-languages label { display:flex; flex:1 1 150px; flex-direction:column; gap:4px; min-width:0 }
.ak-translation-languages select { width:100%; min-height:44px; padding:6px 10px; border:1px solid var(--ak-border); border-radius:6px; background:white; color:var(--ak-ink); font:inherit; text-align:start }
.ak-translation-controls p { margin:6px 0 0; line-height:1.5; color:var(--ak-muted) }
.ak-translation-controls p:empty { display:none }
.ak-translation-controls .ak-translation-notice { font-size:.78rem }
.ak-translation-notice a { color:inherit; text-decoration:underline }
.ak-message-translation { margin-block-start:4px; font-size:.85em; border-block-start:1px solid var(--ak-border) }
.ak-message-translation summary { display:flex; align-items:center; min-height:44px; cursor:pointer; text-decoration:underline; text-underline-offset:3px }
.ak-message-translation summary::before { content:'▸'; margin-inline-end:6px }
.ak-message-translation[open] summary::before { content:'▾' }
.ak-message-translation > div { padding-block:6px; white-space:normal; font-size:1rem }
.ak-formatted-answer > small,.ak-message-translation-state { display:block; margin-block-start:8px; color:var(--ak-muted); font-size:.78rem }
.ak-widget .ak-translation-retry { min-height:44px; padding:8px; border:0; background:transparent; color:inherit; text-decoration:underline }
.ak-project-mode .ak-main > :is(.ak-log,.ak-form:not(.ak-project-composer),.ak-status,.ak-guest-actions){display:none!important}
.ak-workspace{min-height:0;overflow:auto;flex:1;display:flex;flex-direction:column;gap:.65rem;color:var(--ak-ink);background:#fff}
.ak-workspace > *{flex-shrink:0}
.ak-workspace h3,.ak-workspace p{margin:0}
.ak-workspace textarea{width:100%;font:inherit;color:inherit;background:#fff;border:1px solid var(--ak-border);border-radius:.5rem;padding:.55rem}
.ak-project-message{padding:.6rem .75rem;margin-block:.35rem;background:#f5f5f3;border-radius:.5rem;overflow-wrap:anywhere}
.ak-msg.ak-user, .ak-project-message.ak-user { background: var(--pp-ink, #062527); color: #fff }
.ak-project-message p{white-space:pre-wrap}
.ak-workspace button,.ak-project-nav button{border:1px solid var(--ak-border);border-radius:.5rem;background:#fff;color:var(--ak-ink);padding:.45rem .65rem}
.ak-workspace [role="log"]:empty{display:none}
.ak-context,.ak-project-overview { margin:0; padding:.55rem .85rem; background:#f4f8f7; border-block-end:1px solid var(--ak-border); color:var(--ak-ink) }
.ak-context { font-size:.875rem; font-weight:600 }
.ak-project-overview { display:flex; flex-wrap:wrap; align-items:center; gap:.3rem .75rem }
.ak-project-meta,.ak-project-sections { display:flex; flex-wrap:wrap; align-items:center; gap:.25rem .75rem }
.ak-project-meta { font-size:.875rem }
.ak-project-sections { flex-basis:100% }
.ak-project-sections button,.ak-project-next,.ak-open-project { min-height:44px; padding:.35rem .65rem; border:1px solid var(--ak-border); border-radius:.5rem; background:white; color:var(--ak-ink); font:inherit }
.ak-widget .ak-project-sections button[aria-current] { background:var(--ak-ink); color:white }
.ak-project-next { background:var(--ak-ink); color:white }
.ak-project-section-view { flex:1; min-height:0; min-width:0; overflow:auto; padding:clamp(.75rem,2vw,1.25rem); background:white; color:var(--ak-ink); text-align:start; overflow-wrap:anywhere }
.ak-project-section-view:focus { outline:none }
.ak-project-section-view button:not(.ak-form *) { min-height:44px; padding:.45rem .75rem; border:1px solid var(--ak-border); border-radius:.5rem; background:white; color:inherit; font:inherit; cursor:pointer }
.ak-project-section-view :is(button,a,input,select,textarea,summary):focus-visible:not(.ak-form *) { outline:2px solid #20645c; outline-offset:2px }
.ak-project-section-mode .ak-main > .ak-project-composer { display:none!important }
.ak-project-section-view .ak-complete-project { color:#942b32; border-color:#cc9498 }
.ak-customer-tree { margin-block:4px; }
.ak-customer-tree > summary { display:flex; align-items:center; gap:6px; min-height:44px; padding:8px; cursor:pointer; border-radius:7px; font-weight:600; list-style:none }
.ak-customer-tree > summary::-webkit-details-marker { display:none }
.ak-customer-tree > summary::before { content:'›'; display:inline-block; font-size:1.2rem; transition:transform .15s ease }
[dir=rtl] .ak-customer-tree > summary::before { transform:rotate(180deg) }
.ak-customer-tree[open] > summary::before { transform:rotate(90deg) }
.ak-customer-tree > summary span { flex:1; min-width:0; overflow-wrap:anywhere }
.ak-customer-tree > summary small { color:var(--ak-muted); font-size:.75rem }
.ak-customer-tree > summary:hover,.ak-customer-tree[open] > summary { background:#e1e9e7 }
.ak-customer-tree > div { margin-inline-start:12px; padding-inline-start:8px; border-inline-start:1px solid #c5d2ce }
.ak-project-section-view:has(.ak-team-chat) { display:flex; flex-direction:column; padding:0; overflow:hidden }
.ak-project-section-view > div:has(> .ak-team-chat) { display:flex; flex:1; min-height:0; min-width:0 }
.ak-team-chat { display:flex; flex:1; flex-direction:column; min-height:0; min-width:0 }
.ak-team-thread { flex:1; overflow:auto; min-height:0; padding:20px max(14px,calc((100% - 760px)/2)); overscroll-behavior:contain }
.ak-team-thread > p:only-child { margin-block:1rem; color:var(--ak-muted); text-align:center }
.ak-team-thread .ak-project-message { width:fit-content; max-width:88%; padding:12px 16px; margin:0 0 16px; margin-inline-start:auto; margin-inline-end:0; border-radius:16px; background:#cfe4de; color:#172c31; overflow-wrap:anywhere }
.ak-team-thread .ak-project-message.ak-user { margin-inline-start:0; margin-inline-end:auto; background:#062527; color:white }
.ak-team-thread .ak-project-message p { white-space:pre-wrap }
.ak-team-thread .ak-project-message img { display:block; max-width:min(100%,320px); max-height:240px; object-fit:contain; border-radius:8px; margin-block:6px }
.ak-team-thread .ak-project-message.ak-user :is(a,small) { color:#d8eae6 }
.ak-team-thread .ak-team-voice-message { padding:10px 16px }
.ak-team-thread .ak-team-voice-message > small:not(.ak-message-date) { display:inline-block; max-width:100%; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; vertical-align:top }
.ak-team-chat > [role=status] { margin:0 auto; width:min(760px,calc(100% - 24px)); font-size:.85rem }
.ak-team-chat > [role=status]:empty { display:none }
.ak-team-draft { display:flex; align-items:center; gap:.5rem; font-size:.85rem }
.ak-team-draft:empty { display:none }
.ak-team-draft span { flex:1; overflow-wrap:anywhere }
.ak-team-draft button { flex:none; padding:0; width:36px; min-height:36px; border:0; border-radius:50% }
@media (prefers-reduced-motion:reduce) {
    .ak-customer-tree > summary::before { transition:none }
}
.ak-project-sections button:focus-visible,.ak-project-next:focus-visible,.ak-open-project:focus-visible { outline:2px solid #20645c; outline-offset:2px }
.ak-designs,.ak-designs > div,.ak-designs form,.ak-design-comments { display:grid; gap:.75rem; min-width:0 }
.ak-designs label,.ak-design-preview { display:grid; gap:.25rem; min-width:0; overflow-wrap:anywhere }
.ak-designs input,.ak-designs select,.ak-designs textarea { min-width:0; max-width:100%; min-height:44px; font:inherit; border:1px solid var(--ak-border); border-radius:.4rem; padding:.35rem }
.ak-designs button,.ak-designs summary { min-height:44px; cursor:pointer }
.ak-design-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,220px),1fr)); gap:1rem; padding:.25rem .15rem .5rem }
.ak-widget .ak-design-grid .ak-design-card { display:flex; flex-direction:column; padding:0; overflow:hidden; min-width:0; text-align:start; border:1px solid var(--ak-border); border-radius:12px; background:white; color:var(--ak-ink); box-shadow:0 4px 14px #06252712; transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease }
.ak-widget .ak-design-grid .ak-design-create { border-style:dashed; border-color:#527d76; background:#f8faf9 }
.ak-design-create .ak-design-card-image { background:transparent }
.ak-design-create-icon { font-size:3rem; font-weight:300; color:#526b67; line-height:1 }
.ak-designs > [role=status]:empty { display:none }
.ak-designs > div > div { display:grid; gap:.75rem; min-width:0 }
.ak-design-card-image { display:grid; place-items:center; width:100%; aspect-ratio:4/3; overflow:hidden; background:#f0f3f1 }
.ak-design-card-image img { width:100%; height:100%; object-fit:contain; transition:transform .2s ease }
.ak-design-card-image bdi { font-size:2rem; font-weight:600; color:#526b67; letter-spacing:.08em }
.ak-design-card-caption { display:grid; gap:.3rem; padding:.9rem 1rem; width:100% }
.ak-design-card-caption strong { font-size:1rem; overflow-wrap:anywhere }
.ak-design-card-caption small { color:var(--ak-muted); font-size:.8rem; line-height:1.5 }
.ak-widget .ak-design-grid .ak-design-card:focus-visible { outline:3px solid #186bb6; outline-offset:4px }
@media (hover:hover) and (pointer:fine) {
    .ak-widget .ak-design-grid .ak-design-card:hover { transform:translateY(-4px); border-color:#527d76; box-shadow:0 12px 25px #06252726; background:white }
    .ak-design-card:hover img { transform:scale(1.025) }
}
@media (prefers-reduced-motion:reduce) {
    .ak-widget .ak-design-grid .ak-design-card,.ak-design-card-image img { transition:none }
    .ak-widget .ak-design-grid .ak-design-card:hover,.ak-design-card:hover img { transform:none }
}
.ak-design-comparison { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(0,1fr); gap:.5rem }
.ak-design-preview img { width:100%; height:auto; display:block; border:1px solid var(--ak-border) }
.ak-design-preview iframe { width:100%; min-width:0; height:clamp(12rem,36vh,25rem); border:1px solid var(--ak-border) }
.ak-design-canvas { position:relative }
.ak-designs .ak-design-marker { position:absolute; transform:translate(-50%,-50%); height:2.25rem; min-height:0; width:2.25rem; padding:0; border:2px solid white; border-radius:50%; background:var(--ak-ink); color:white; font-weight:700 }
.ak-design-preview,.ak-design-comments article { border:1px solid var(--ak-border); border-radius:.5rem; padding:.65rem }
.ak-design-comments article article { margin-block-start:.5rem }
.ak-design-actions,.ak-design-comments form > div { display:flex; flex-wrap:wrap; gap:.5rem }
.ak-design-activity li { padding-block:.25rem }
.ak-design-activity li button { margin-inline:.35rem }
.ak-workspace button:focus-visible,.ak-project-nav button:focus-visible{outline:2px solid currentColor}
.ak-project-links{padding:0}

.ak-sources { position: relative; width: fit-content; max-width: 100%; margin-block-start: 4px; white-space: normal }
.ak-sources > summary { cursor: pointer; list-style: none; color: #205451; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; padding-block: 4px }
.ak-sources > summary::-webkit-details-marker { display: none }
.ak-source-links { position: absolute; z-index: 3; inset-inline-start: 0; top: 100%; width: max-content; max-width: min(280px, 70vw); overflow: auto; padding: 6px 12px; border: 1px solid #cfdad8; border-radius: 8px; background: white; box-shadow: 0 3px 14px #183b3824 }
.ak-sources-above > .ak-source-links { top: auto; bottom: 100% }
.ak-source-links a { display: block; padding-block: 5px; overflow-wrap: anywhere }
@media (pointer: coarse) {
    .ak-sources > summary, .ak-source-links a { min-height: 44px; align-content: center }
}

.ak-body { display:flex; flex:1; min-height:0; position:relative }
.ak-main { display:flex; flex:1; flex-direction:column; min-width:0; min-height:0 }
.ak-sidebar { flex:0 0 clamp(175px,22%,260px); overflow:auto; padding:12px; background:#f5f7f6; border-inline-end:1px solid var(--ak-border); overscroll-behavior:contain }
.ak-sidebar h3 { margin:12px 8px 4px; font-weight:600; line-height:1.4; font-size:13px; color:var(--ak-muted) }
.ak-sidebar button, .ak-head h2 { overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
.ak-sidebar button { display:block; width:100%; text-align:start }
.ak-sidebar button[aria-current=true] { background:#e1e9e7; font-weight:600 }
.ak-sidebar p { font-size:13px; color:var(--ak-muted); padding-inline:8px }
@media (max-width:767px) {
    .ak-sidebar { position:absolute; inset-block:0; inset-inline-start:0; width:min(82%,300px); z-index:2; box-shadow:0 8px 24px #14242026 }
}
.ak-linked-project { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:.75rem; padding:1rem }
.ak-linked-project button { background:var(--ak-ink); color:white; border:0; border-radius:.5rem; padding:.5rem 1rem }
.ak-history-lock { display:flex; align-items:center; justify-content:center; gap:.15rem; white-space:nowrap; font-size:.7rem; line-height:1.2 }
.ak-history-lock::before {
    content:""; width:.9rem; height:.9rem; background-color:currentColor;
    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'%3E%3Crect x='5' y='10' width='14' height='11' rx='2'/%3E%3Cpath d='M8 10V7a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ak-history-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center }
.ak-side-chats .ak-history-row { grid-template-columns:minmax(0, 1fr) repeat(2, 1.65rem) }
.ak-side-chats .ak-history-row:has(.ak-history-lock) { grid-template-columns:minmax(0, 1fr) auto 1.65rem }
.ak-history-row button:not([data-item]) { width: auto; padding-inline: 6px; text-align: center }

.ak-sidebar.ak-file-active > :not(.ak-file-panel) { display: none }
.ak-file-panel { min-width: 0; overflow-wrap: anywhere }
.ak-file-panel header, .ak-file-list > div { display: flex; align-items: center; justify-content: space-between; gap: .5rem }
.ak-file-panel h3 { margin: 0; font-size: 1rem }
.ak-file-panel header button { flex: none; width: 44px; padding: 0; text-align: center; font-size: 1.3rem }
.ak-file-list > div { padding-block: .5rem; border-bottom: 1px solid var(--ak-border) }
.ak-file-list .ak-attachment-preview { display: flex; align-items: center; gap: .65rem; min-width: 0; overflow-wrap: anywhere; color: inherit }
.ak-file-list img, .ak-document-icon { flex: none; width: 44px; height: 44px; object-fit: contain; border-radius: 5px; background: #f1f5f4 }
.ak-file-list > section { padding-block:.5rem; border-bottom:1px solid var(--ak-border) }
.ak-file-list audio { width:100% }
.ak-file-list > div:has(.ak-file-context) { flex-wrap:wrap }
.ak-file-context { display:flex; flex:1 0 100%; flex-wrap:wrap; align-items:center; gap:.25rem .5rem; font-size:.875rem }
.ak-file-context button { text-decoration:underline }
.ak-workspace [data-origin-file].ak-original-highlight { outline:3px solid #bd8b20; outline-offset:2px }
.ak-panel .ak-missed-call { color:#993e36 }
.ak-workspace [role="log"] > .ak-project-message.ak-call-message { background:#edf2f1; color:#234443 }
.ak-document-icon { display: grid; place-items: center; border: 1px solid var(--ak-border); border-start-end-radius: 12px; font-size: .65rem; font-weight: 600 }
.ak-panel .ak-attachment-preview {
    text-align: start;
    color: var(--ak-ink);
    overflow-wrap: anywhere;
    max-width: 100%
}
.ak-formatted-answer a, .ak-draft-preview a { text-decoration: underline; }
.ak-panel :is(.ak-project-message,.ak-msg) button.ak-attachment-preview {
    background: transparent;
    color: inherit;
    border: 0;
}
.ak-panel .ak-attachment-preview:has(.ak-document-icon) {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
}
.ak-panel .ak-document-icon { color: #243d42; }
.ak-panel .ak-file-list .ak-attachment-preview { color: var(--ak-ink); }
.ak-workspace .ak-message-options { padding: 0; border: 0; background: transparent }
.ak-message-options summary { cursor: pointer; list-style: none; text-align: center; min-width: 44px; min-height: 44px; line-height: 44px; font-size: 1.2rem }
.ak-message-options summary::-webkit-details-marker { display: none }
.ak-message-options > [popover]:popover-open { position: fixed; inset: auto; margin: 0; box-sizing: border-box; width: max-content; overflow: auto; overscroll-behavior: contain; box-shadow: 0 6px 24px #112e302c; display: grid; padding: .25rem; background: white; border: 1px solid var(--ak-border); border-radius: .65rem }
.ak-workspace .ak-message-options button { min-height: 44px; border: 0; text-align: start }
.ak-quick-replies { display: flex; flex-wrap: wrap }
.ak-quick-replies button { min-width: 44px }

.ak-workspace .ak-message-options { float: inline-end; margin-inline-start: .4rem; color: var(--ak-ink) }
.ak-message-options summary { background: rgb(255 255 255 / 50%); color: #193936; border-radius: .4rem; min-height: 24px; line-height: 24px }
.ak-message-marks:not(:empty) { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; margin-top: .25rem }
.ak-message-marks button[aria-pressed="true"] { border-color: #207469; background: #e0f0eb }
.ak-project-message:has(.ak-message-options) { display: flow-root }.ak-project-message { background: transparent }
.ak-project-message.ak-user { width: fit-content; max-width: 88%; margin-inline-end: auto; padding: 10px 16px; border-radius: 16px }
.ak-project-message.ak-user a { color: inherit }
.ak-message-pins { position: sticky; inset-block-start: -1rem; z-index: 2; background: white; display: grid; gap: .15rem; padding-block: .25rem }
.ak-message-pins:empty { display: none }
.ak-message-pins button { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: start }
.ak-sidebar.ak-tool-active > :not(.ak-sidebar-tool) { display: none }
.ak-sidebar-tool { display: grid; gap: .65rem; min-width: 0 }
.ak-sidebar-tool form, .ak-sidebar-tool > div { display: grid; gap: .4rem }
.ak-sidebar-tool :is(input, select) { width: 100%; min-width: 0; min-height: 44px; padding-inline: .5rem; border: 1px solid var(--ak-border); border-radius: .5rem; font: inherit }
.ak-sidebar-tool select, .ak-sidebar-tool option, .ak-sidebar-tool optgroup { color: var(--ak-ink); background: #dce5e2 }
.ak-sidebar .ak-sidebar-tool > div button { width: 100%; display: grid; gap: .25rem; white-space: normal; overflow-wrap: anywhere; text-align: start; background: white; border: 1px solid var(--ak-border); border-radius: .65rem; padding: .65rem }
.ak-sidebar .ak-sidebar-tool > div button:is(:hover,:focus-visible) { background: #deebe6; border-color: #668780 }
.ak-sidebar .ak-sidebar-tool > div button[aria-current="location"] { background: #c8e5dc; border-color: #327463; border-inline-start-width: 4px; }
.ak-sidebar-tool strong { font-weight: 800; color: #102825 }
@media(max-width: 600px) { .ak-head button { width: 34px } .ak-head { gap: 0 } }
.ak-forward-tray:empty { display: none }
.ak-forward-tray { max-height: 24vh; overflow: auto }
.ak-forward-card { border-inline-start: 3px solid #508278; padding: .5rem .75rem; margin-block: .25rem .5rem; background: #edf4f1; color: #193a33; border-radius: .4rem; overflow-wrap: anywhere }
.ak-forward-card p { margin: 0; white-space: pre-wrap }
.ak-forward-card > strong { font-size: .85em }
.ak-forward-card:has(.ak-open-original) { position: relative; isolation: isolate }
.ak-forward-card .ak-open-original::after { content: ""; position: absolute; inset: 0; cursor: pointer; border-radius: .4rem }
.ak-forward-card:has(.ak-open-original) :is(a,button:not(.ak-open-original)) { position: relative; z-index: 1 }
.ak-project-message.ak-original-highlight { outline: 3px solid #bd8b20; outline-offset: -3px; box-shadow: inset 0 0 0 100vmax rgb(246 194 69 / 16%) }
.ak-message-date { display: block; clear: both; margin-block-start: 4px; color: #656565; font-size: 12px; line-height: 1.4; font-weight: 400; white-space: nowrap }
.ak-user > .ak-message-date { color: #c5c5c5 }

.ak-receipt-row { display:flex; align-items:baseline; flex-wrap:wrap; gap:6px; clear:both; color:#c5c5c5; font-size:12px }
.ak-receipt-row .ak-message-date { color:inherit }
.ak-receipt-row details { border:0; padding:0; background:transparent; color:inherit }
.ak-receipt-row summary { cursor:pointer; list-style:none; min-height:24px; line-height:24px; padding-inline:3px }
.ak-receipt-row summary::-webkit-details-marker { display:none }
.ak-receipt-row details[open] > div { padding:4px 0 }
.ak-receipt-row details .ak-message-date { display:inline; margin-inline-start:6px }
.pp-header-chat:has(.ak-chat-count) { position:relative }
.ak-chat-count:not([hidden]) { position:absolute; inset-block-start:0; inset-inline-end:0; display:grid; place-items:center; min-width:19px; height:19px; padding-inline:4px; box-sizing:border-box; border-radius:999px; background:#bd192a; color:#fff; font:700 12px/1 system-ui,sans-serif; font-variant-numeric:tabular-nums; pointer-events:none }
.ak-sidebar [data-new-count],.ak-project-sections [data-new-count] { position:relative; padding-inline-end:2.4rem }
.ak-sidebar [data-new-count]::after,.ak-project-sections [data-new-count]::after { content:attr(data-new-count); position:absolute; inset-inline-end:4px; top:50%; transform:translateY(-50%); display:grid; place-items:center; min-width:19px; height:19px; box-sizing:border-box; padding-inline:4px; border-radius:999px; background:#bd192a; color:#fff; font:700 12px/1 system-ui,sans-serif }


.ak-device-settings { display:flex; flex-wrap:wrap; align-items:center; gap:.25rem .75rem; padding:.25rem .75rem; font-size:.85rem }
.ak-device-settings button { font:inherit; color:inherit; background:transparent; border:0; text-decoration:underline; cursor:pointer }
.ak-device-settings span:empty { display:none }

.ak-device-invitation { display:flex; align-items:center; flex-wrap:wrap; gap:.4rem .75rem; padding-block:.35rem }
.ak-device-invitation button { min-height:36px; padding-inline:.65rem }
.ak-device-invitation button:first-of-type { background:var(--ak-ink); color:white; border-radius:.4rem; text-decoration:none }

.ak-workspace [role="log"] > .ak-project-message {
    box-sizing:border-box; width:fit-content; max-width:88%; min-width:0;
    padding:10px 16px; border-radius:16px;
}
.ak-workspace [role="log"] > .ak-project-message:not(.ak-user) {
    background:var(--ak-sender-color, #cfe4de); color:#172c31;
}
.ak-workspace [role="log"] > .ak-project-message.ak-user { background:#062527 }
.ak-workspace [role="log"] > .ak-project-message.ak-deleted { background:#eaecee; color:#404a50 }
.ak-project-message.ak-deleted > .ak-message-date { color:#505b61 }
.ak-workspace [role="log"] > .ak-project-message > small {
    display:inline-block; max-width:100%; white-space:nowrap;
    overflow:hidden; text-overflow:ellipsis; vertical-align:top;
}
.ak-device-settings[hidden], [data-disable-device][hidden] { display:none }
.ak-call-bar { display:flex; flex-wrap:wrap; align-items:center; gap:8px; padding:8px 16px; border-bottom:1px solid var(--ak-border); background:#f4f8f7 }
.ak-call-bar span { flex:1 1 16rem }
.ak-call-bar .ak-call-accept, .ak-incoming-call .ak-call-accept { background:#17653e; color:white }
.ak-call-bar .ak-call-decline, .ak-incoming-call .ak-call-decline { background:#a92d36; color:white }
.ak-call-bar .ak-call-accept:hover:not(:disabled), .ak-incoming-call .ak-call-accept:hover:not(:disabled) { background:#115231 }
.ak-call-bar .ak-call-decline:hover:not(:disabled), .ak-incoming-call .ak-call-decline:hover:not(:disabled) { background:#90222b }
.ak-call-bar a { text-decoration:underline }

.ak-incoming-call { position:fixed; inset:0; margin:auto; box-sizing:border-box; width:min(29rem,calc(100% - 2rem)); max-height:calc(100dvh - 2rem); overflow:auto; height:fit-content; padding:clamp(1.25rem,4vw,2rem); border:0; border-radius:18px; background:white; color:#173331; font:inherit; text-align:start; box-shadow:0 18px 65px #0005 }
.ak-incoming-call::backdrop { background:rgba(6,20,21,.76) }
.ak-incoming-call h2 { margin:0; font-size:1.4rem; color:inherit }
.ak-incoming-call p { margin:.8rem 0; line-height:1.6; overflow-wrap:anywhere }
.ak-incoming-call p[aria-live] { font-weight:600 }
.ak-incoming-call a { color:#20554c; text-decoration:underline }
.ak-call-decisions { display:grid; grid-template-columns:minmax(0,1.6fr) minmax(0,1fr); gap:.65rem; margin-top:1.3rem }
.ak-call-decisions button { padding:.65rem .75rem; min-height:44px; border:0; border-radius:9px; font:inherit; font-weight:600; line-height:1.35; cursor:pointer }
.ak-incoming-call :focus-visible { outline:3px solid #235c96; outline-offset:3px }
.ak-project-tools { display:flex; gap:.35rem; align-items:center }
.ak-head .ak-project-tools button { width:44px; padding:0; color:#16443f }
.ak-project-info { box-sizing:border-box; position:fixed; inset:0; margin:auto; width:min(32rem,calc(100% - 2rem)); max-height:75dvh; overflow:auto; padding:1.25rem; border:1px solid #ced9d6; border-radius:16px; background:white; color:#173331; text-align:start; font:inherit; overflow-wrap:anywhere }
.ak-project-info::backdrop { background:rgb(10 28 28 / 48%) }
.ak-project-info header { display:flex; justify-content:space-between; align-items:center; gap:1rem }
.ak-project-info h3 { margin:0; font-size:1.15rem }
.ak-project-info button { border:1px solid #b9cac6; background:white; color:inherit; border-radius:.5rem; min-height:44px; padding:.45rem .75rem; font:inherit; cursor:pointer }
.ak-project-info header .ak-dialog-close { display:grid; place-items:center; flex:none; width:44px; height:44px; padding:0; border:0; border-radius:50%; background:transparent; color:inherit }
.ak-project-info header .ak-dialog-close:hover { background:#edf3f1 }
.ak-project-info .ak-complete-project { color:#942b32; border-color:#cc9498 }
.ak-project-info section > div:first-child { border-bottom:1px solid #dae1df; padding-bottom:.8rem }
.ak-project-info img { max-width:100%; max-height:8rem; object-fit:contain }
.ak-project-info.ak-design-dialog { width:min(68rem,calc(100% - 2rem)); max-height:90dvh }
.ak-design-dialog > header { position:sticky; top:-1.25rem; z-index:1; padding-block:.5rem; margin-block-end:.75rem; background:white }
.ak-design-dialog .ak-design-preview img { max-height:none }
.ak-design-dialog .ak-designs > div:first-child { border:0; padding:0 }
@media(max-width:600px) {
    .ak-design-dialog .ak-design-comparison { grid-auto-flow:row }
}
@media(max-width:767px) {
    .ak-head:has(.ak-project-tools:not([hidden])) { flex-wrap:wrap }
    .ak-head:has(.ak-project-tools:not([hidden])) h2 { flex-basis:5ch }
    .ak-project-tools { order:1; flex:none }
}
@media(max-width:600px) {
    .ak-project-tools { gap:0 }
    .ak-head .ak-project-tools button { width:34px }
}

.ak-floating-call {position:fixed;inset-inline-end:1rem;bottom:calc(5rem + env(safe-area-inset-bottom));max-width:min(27rem,calc(100vw - 2rem));border:1px solid var(--ak-border);border-radius:12px;box-shadow:0 5px 24px #0003}
.ak-call-bar button,.ak-call-schedule button {min-height:44px}
.ak-call-bar time {font-variant-numeric:tabular-nums;direction:ltr}
.ak-call-schedule {display:grid;gap:12px}
.ak-call-schedule label {display:grid;gap:4px}
.ak-call-schedule input {min-width:0;width:100%;padding:8px;font:inherit}
.ak-call-schedule li {margin-block:.6rem;overflow-wrap:anywhere}
