/* All rules are scoped to the support module. The site stylesheet stays intact. */
.as-page { padding-top: 0; padding-bottom: 28px; background: #ffffff; color: #353535; }
.as-page > .mainwidth { width: 1660px; max-width: calc(100% - 48px); }
#akari-support { --as-blue: #0048ff; --as-text: #353535; --as-border: #e8ebf1; --as-muted: #727986; --as-soft: #f7f8fb; font-family: "Akari", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 17px; line-height: 1.5; color: var(--as-text); isolation: isolate; }
#akari-support *, #akari-support *::before, #akari-support *::after { box-sizing: border-box; }
#akari-support [hidden] { display: none !important; }
#akari-support h1, #akari-support h2, #akari-support h3, #akari-support p { margin: 0; }
#akari-support a { color: inherit; text-decoration: none; }
#akari-support button, #akari-support input, #akari-support select, #akari-support textarea { font: inherit; color: inherit; }
#akari-support button { cursor: pointer; }
#akari-support button:disabled { opacity: .45; cursor: wait; }
#akari-support :focus-visible { outline: 3px solid #0048ff55; outline-offset: 3px; }
#akari-support input, #akari-support select, #akari-support textarea { width: 100%; min-width: 0; border: 1px solid var(--as-border); border-radius: 9px; background: #fff; padding: 10px 12px; outline: none; transition: border-color .18s, box-shadow .18s; }
#akari-support input:focus, #akari-support select:focus, #akari-support textarea:focus { border-color: var(--as-blue); box-shadow: 0 0 0 3px #0048ff0d; }
#akari-support input::placeholder, #akari-support textarea::placeholder { color: #9198a5; }
#akari-support textarea { resize: vertical; line-height: 1.7; }
#akari-support label { display: flex; flex-direction: column; gap: 7px; font-size: 15px; font-weight: 700; }
.as-icon { width: 18px; height: 18px; flex: 0 0 18px; vertical-align: middle; }
#akari-support .as-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 16px; border: 1px solid var(--as-border); border-radius: 10px; background: #fff; font-weight: 700; line-height: 1.25; min-height: 42px; transition: background .18s, transform .18s; white-space: nowrap; }
#akari-support .as-button:hover { background: #f3f5fb; }
#akari-support .as-button.is-primary { border-color: var(--as-blue); background: var(--as-blue); color: #fff; box-shadow: 0 4px 12px #0048ff16; }
#akari-support .as-button.is-primary:hover { background: #003ad2; }
#akari-support .as-button.is-small { padding: 8px 12px; font-size: 15px; min-height: 34px; }
#akari-support .as-icon-button { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 1px solid transparent; background: transparent; border-radius: 9px; color: var(--as-muted); flex-shrink: 0; }
#akari-support .as-icon-button:hover { background: #eef3ff; color: var(--as-blue); }
#akari-support .as-link { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: transparent; color: var(--as-blue); font-weight: 700; font-size: 15px; text-align: left; }
#akari-support .as-link:hover { text-decoration: underline; }
.as-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 25px; }
.as-brand { display: flex; align-items: center; gap: 12px; }
.as-mark { width: 44px; height: 44px; border-radius: 13px; background: var(--as-blue); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 5px 14px #0048ff1a; }
.as-mark .as-icon { width: 22px; height: 22px; }
.as-brand b { display: block; font-size: 23px; letter-spacing: -.5px; }
.as-brand small { display: block; color: var(--as-muted); font-size: 15px; }
.as-header-actions { display: flex; align-items: center; gap: 18px; }
.as-agent { display: inline-flex; gap: 7px; align-items: center; font-size: 15px; color: var(--as-muted); }
.as-agent .as-icon { width: 16px; height: 16px; }
.as-workspace { display: grid; grid-template-columns: 220px 370px minmax(0,1fr); min-height: 720px; height: calc(100dvh - 100px); max-height: 1100px; border: 1px solid var(--as-border); border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 9px 40px #20294b05; }
.as-workspace.is-guest { grid-template-columns: minmax(0,1fr); height: auto; max-height: none; }
.as-sidebar { background: #fafbfe; padding: 25px 12px 16px; border-right: 1px solid var(--as-border); display: flex; flex-direction: column; min-height: 0; }
.as-nav-label { padding: 0 11px 15px; font-size: 13px; color: #9198a5; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; }
#akari-support .as-nav { display: flex; width: 100%; align-items: center; gap: 9px; padding: 10px 10px; margin-bottom: 4px; border: 1px solid transparent; border-radius: 9px; background: transparent; text-align: left; font-size: 15px; color: #697080; }
.as-nav .as-icon { width: 16px; height: 16px; flex-basis: 16px; }
.as-nav > span:first-of-type { flex: 1; }
#akari-support .as-nav.is-active { color: var(--as-blue); background: #edf2ff; font-weight: 700; }
#akari-support .as-nav:hover { background: #f0f3fa; }
.as-nav-count { min-width: 19px; font-size: 13px; text-align: center; opacity: .8; }
.as-sidebar-bottom { margin-top: auto; padding-top: 20px; }
.as-sidebar-bottom p { padding: 6px 11px 0; font-size: 14px; line-height: 1.7; color: #9299a5; }
.as-queue { display: flex; flex-direction: column; min-width: 0; min-height: 0; border-right: 1px solid var(--as-border); }
.as-filters { padding: 18px 16px 0; border-bottom: 1px solid var(--as-border); flex-shrink: 0; }
.as-search { position: relative; display: flex; align-items: center; }
.as-search > .as-icon { position: absolute; left: 12px; color: #9198a5; width: 16px; height: 16px; }
#akari-support .as-search input { padding: 10px 36px; font-size: 15px; background: var(--as-soft); border-color: transparent; height: 40px; }
.as-search > button { position: absolute; right: 9px; display: flex; padding: 2px; border: 0; background: transparent; color: #9198a5; }
.as-search > button .as-icon { width: 13px; height: 13px; }
#akari-support input[type=search]::-webkit-search-cancel-button { display: none; }
.as-filter-details { padding-top: 10px; }
.as-filter-details > summary { font-size: 15px; color: var(--as-muted); display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; }
.as-filter-details > summary::-webkit-details-marker { display: none; }
.as-filter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 9px; padding: 13px 0; max-height: 280px; overflow: auto; }
.as-filter-grid label { font-size: 13px !important; gap: 5px !important; }
#akari-support .as-filter-grid input, #akari-support .as-filter-grid select { padding: 8px; font-size: 14px; }
.as-filter-actions { display: flex; gap: 7px; margin-bottom: 10px; }
.as-queue-toolbar { display: flex; align-items: center; gap: 4px; padding: 9px 0; }
.as-queue-toolbar > span { flex: 1; font-size: 14px; color: var(--as-muted); white-space: nowrap; }
#akari-support .as-queue-toolbar select { width: 156px; padding: 5px; border: 0; color: var(--as-muted); font-size: 14px; background: transparent; }
.as-ticket-list { overflow-y: auto; flex: 1; min-height: 0; padding: 8px; overscroll-behavior: contain; scrollbar-width: thin; transition: opacity .15s; }
.as-ticket-list.is-loading { opacity: 1; }
#akari-support .as-ticket { display: block; padding: 15px 13px; margin-bottom: 4px; border-radius: 11px; border: 1px solid transparent; position: relative; transition: background .15s; }
#akari-support .as-ticket:hover { background: #f7f9fe; }
#akari-support .as-ticket.is-selected { background: #f0f4ff; border-color: #e1e9ff; }
.as-ticket-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #9198a5; font-size: 13px; margin-bottom: 8px; }
.as-ticket-id { display: flex; align-items: center; gap: 6px; color: #6d7586; }
.as-unread-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--as-blue); display: inline-block; }
#akari-support .as-ticket h3 { font-size: 16px; line-height: 1.5; font-weight: 700; margin-bottom: 5px; overflow-wrap: anywhere; }
#akari-support .as-preview { font-size: 14px; line-height: 1.7; color: #7c8391; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 10px; overflow-wrap: anywhere; }
.as-ticket-tags { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.as-badge { display: inline-flex; align-items: center; border-radius: 6px; font-size: 13px; padding: 3px 7px; font-weight: 700; line-height: 1.5; background: #eef2fa; color: #657187; max-width: 100%; }
.as-badge.is-action { background: #e9f0ff; color: var(--as-blue); }
.as-badge.is-wait { background: #f2f3f7; color: #6e7684; }
.as-badge.is-closed { background: #eef6f1; color: #47825d; }
.as-priority { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: #ac7b21; }
.as-priority .as-icon { width: 11px; height: 11px; flex-basis: 11px; }
.as-priority.p3, .as-late { color: #c15752; }
.as-late { font-size: 12px; background: #fcf0ef; padding: 3px 6px; border-radius: 5px; }
.as-ticket-bottom { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: #9198a5; margin-top: 9px; }
.as-ticket-bottom span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.as-pagination { display: flex; justify-content: center; align-items: center; gap: 10px; border-top: 1px solid var(--as-border); padding: 8px; font-size: 14px; color: var(--as-muted); }
.as-next .as-icon { transform: rotate(180deg); }
.as-detail { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.as-detail-top { display: flex; align-items: center; gap: 8px; justify-content: space-between; padding: 12px 22px; border-bottom: 1px solid var(--as-border); flex-shrink: 0; font-size: 14px; color: #8b93a0; }
.as-detail-tools { display: flex; margin-left: auto; gap: 3px; }
.as-detail-layout { display: flex; flex: 1; min-height: 0; }
.as-conversation { display: flex; flex-direction: column; flex: 1; min-width: 0; min-height: 0; }
.as-ticket-heading { padding: 24px 26px 18px; flex-shrink: 0; }
.as-kicker { display: block; color: #8a92a1; font-size: 13px; letter-spacing: .65px; font-weight: 700; }
.as-kicker span { padding: 0 5px; opacity: .6; }
#akari-support .as-ticket-heading h1 { font-size: 26px; letter-spacing: -.5px; line-height: 1.3; font-weight: 700; margin: 9px 0 12px; overflow-wrap: anywhere; }
.as-heading-meta { display: flex; align-items: center; gap: 12px; color: #8b93a0; font-size: 13px; flex-wrap: wrap; }
.as-access-hint { margin: 0 26px 14px; display: flex; align-items: center; gap: 7px; padding: 12px; color: #62708b; background: #f2f6ff; border-radius: 9px; font-size: 14px; flex-wrap: wrap; }
.as-access-hint .as-icon { flex-basis: 14px; width: 14px; height: 14px; }
.as-update-banner { margin: 0 26px 10px; padding: 10px 12px; background: #eff4ff; border-radius: 9px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 15px; color: var(--as-blue); }
.as-thread { flex: 1; min-height: 100px; overflow-y: auto; padding: 2px 26px 12px; scrollbar-width: thin; overscroll-behavior: contain; }
.as-message { padding: 18px; border: 1px solid var(--as-border); border-radius: 12px; margin-bottom: 12px; background: #fff; }
.as-message.is-support { border-color: #e2eaff; background: #f6f8ff; }
.as-message.is-first { border-color: #e9ecf2; background: #fcfcfd; }
.as-message-header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; font-size: 14px; }
.as-message-header time { font-size: 12px; margin-left: auto; color: #939aa6; }
.as-avatar { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 8px; color: #8b93a0; background: #f0f2f6; flex-shrink: 0; }
.as-avatar .as-icon { width: 14px; height: 14px; }
.as-avatar.is-blue { background: #e7eeff; color: var(--as-blue); }
.as-avatar.is-large { width: 44px; height: 44px; border-radius: 13px; margin-bottom: 11px; }
.as-avatar.is-large .as-icon { width: 23px; height: 23px; }
.as-message-body { font-size: 16px; line-height: 1.85; overflow-wrap: anywhere; }
.as-original-label { margin-left: auto; color: #9ca3af; font-size: 12px; }
.as-status-change { display: flex; align-items: center; gap: 5px; padding-top: 12px; margin-top: 12px; border-top: 1px solid #e4e8f1; color: #8992a1; font-size: 13px; }
.as-status-change .as-icon { width: 12px; height: 12px; }
.as-system { padding: 12px; margin-bottom: 12px; display: flex; align-items: center; gap: 6px; justify-content: center; color: #68826d; background: #f1f7f2; border-radius: 9px; font-size: 14px; flex-wrap: wrap; }
.as-system time { color: #8c9c90; font-size: 12px; }
#akari-support .as-to-reply { padding: 4px 26px 10px; align-self: flex-start; font-size: 13px; }
.as-composer { margin: 0 26px 22px; padding: 14px; border: 1px solid #e3e7ef; border-radius: 13px; background: #fff; flex-shrink: 0; box-shadow: 0 4px 18px #253d6b04; }
.as-composer-tabs { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
#akari-support .as-composer-tabs button { display: flex; align-items: center; gap: 5px; padding: 0 0 8px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #9198a5; font-size: 13px; font-weight: 700; }
#akari-support .as-composer-tabs button.is-active { color: var(--as-blue); border-bottom-color: var(--as-blue); }
.as-composer-tabs .as-icon { width: 13px; height: 13px; flex-basis: 13px; }
#akari-support .as-composer-tabs .as-template-button { margin-left: auto; color: var(--as-blue); }
#akari-support .as-composer textarea { padding: 8px 3px; border: 0; box-shadow: none; border-radius: 0; min-height: 100px; max-height: 240px; font-size: 15px; background: transparent; }
.as-composer-meta { display: flex; justify-content: space-between; gap: 10px; color: #a0a7b3; font-size: 12px; padding: 7px 0 12px; }
.as-composer-actions { display: flex; gap: 8px; align-items: center; justify-content: space-between; border-top: 1px solid #eff1f5; padding-top: 12px; }
.as-composer-actions > .as-muted { font-size: 13px; max-width: 210px; }
.as-composer-actions kbd { margin-left: 5px; font-size: 12px; opacity: .65; border-left: 1px solid #ffffff55; padding-left: 8px; font-family: inherit; }
#akari-support .as-status-label { display: flex; flex-direction: row; align-items: center; gap: 7px; font-size: 13px; color: #939baa; font-weight: 400; }
#akari-support .as-status-label select { width: 155px; border: 0; padding: 7px 2px; color: #596477; font-size: 14px; }
.as-composer.is-note-mode { border-color: #eee0b8; background: #fffdf6; }
.as-note-hint { font-size: 13px; color: #9c7c37; margin-bottom: 8px; }
#akari-support .is-note-mode .as-composer-tabs button.is-active { color: #9c7c37; border-bottom-color: #b7923d; }
.as-crm { width: 232px; flex: 0 0 232px; padding: 22px 18px; border-left: 1px solid var(--as-border); background: #fcfdff; overflow-y: auto; scrollbar-width: thin; }
.as-crm-title { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; margin-bottom: 20px; }
.as-crm-title .as-icon { width: 15px; height: 15px; }
.as-customer { display: flex; flex-direction: column; align-items: flex-start; padding-bottom: 14px; }
.as-customer b { font-size: 15px; overflow-wrap: anywhere; margin-bottom: 5px; }
.as-customer .as-link { font-size: 13px; }
.as-customer-stats { display: grid; grid-template-columns: 1fr 1fr; padding: 12px 0 20px; border-top: 1px solid var(--as-border); }
.as-customer-stats span { font-size: 13px; color: #9ba2ae; display: flex; flex-direction: column; }
.as-customer-stats b { font-size: 25px; color: #505c70; font-weight: 400; }
.as-meta { display: flex; flex-direction: column; gap: 12px; }
.as-meta > .as-link { margin-top: -7px; font-size: 13px !important; }
#akari-support .as-meta label { font-size: 13px; color: #8a93a1; }
#akari-support .as-meta input, #akari-support .as-meta select { padding: 9px; font-size: 14px; color: #556175; }
.as-crm-section { border-top: 1px solid var(--as-border); padding-top: 19px; margin-top: 22px; }
#akari-support .as-crm-section h3 { font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.as-crm-section h3 > span { color: #a7aebb; margin-left: 5px; }
.as-crm-section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 7px; }
.as-crm-section .as-muted { font-size: 13px; }
#akari-support .as-history { display: block; padding: 10px 0; border-bottom: 1px solid #f0f2f7; }
.as-history > span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; line-height: 1.6; }
.as-history small { display: block; font-size: 12px; color: #a0a7b3; margin-top: 4px; }
#akari-support .as-history:hover > span { color: var(--as-blue); }
.as-note { border-radius: 9px; padding: 11px; background: #fffaf0; border: 1px solid #f2e9d2; margin-top: 9px; }
.as-note > div { display: flex; flex-direction: column; gap: 3px; font-size: 13px; }
.as-note time { color: #b6a886; font-size: 11px; }
.as-note p { margin-top: 7px !important; font-size: 14px; line-height: 1.75; overflow-wrap: anywhere; }
.as-audit { padding-top: 17px; margin-top: 20px; border-top: 1px solid var(--as-border); }
.as-audit summary { color: #8a93a1; font-size: 13px; cursor: pointer; }
.as-audit p { margin-top: 12px !important; font-size: 13px; overflow-wrap: anywhere; }
.as-audit small { display: block; margin-top: 4px; font-size: 11px; color: #a6adba; }
.as-muted { color: #8b93a0; font-size: 15px; }
.as-welcome { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; flex: 1; padding: 40px 24px; }
.as-welcome-icon { display: inline-flex; align-items: center; justify-content: center; width: 68px; height: 68px; background: #f0f4ff; color: var(--as-blue); border-radius: 21px; margin-bottom: 22px; }
.as-welcome-icon .as-icon { width: 30px; height: 30px; }
#akari-support .as-welcome h1 { font-size: 28px; letter-spacing: -.5px; margin-bottom: 10px; }
.as-welcome p { color: #8992a1; font-size: 15px; max-width: 300px; line-height: 1.8; }
.as-welcome-stats { display: flex; gap: 45px; margin: 35px 0; }
.as-welcome-stats > div { display: flex; flex-direction: column; }
.as-welcome-stats strong { font-size: 38px; color: #61718e; font-weight: 400; }
.as-welcome-stats span { color: #9ba3b0; font-size: 14px; }
.as-empty { text-align: center; padding: 45px 20px; color: #8891a1; }
.as-empty > .as-icon { width: 30px; height: 30px; margin-bottom: 15px; opacity: .5; }
#akari-support .as-empty h3 { font-size: 17px; color: #596579; margin-bottom: 8px; }
.as-empty p { font-size: 15px; line-height: 1.8; margin-bottom: 18px !important; }
.as-standalone { width: 740px; max-width: 100%; margin: 35px auto 70px; }
.as-back-link { margin-bottom: 30px; }
.as-form-heading { margin-bottom: 26px; }
#akari-support .as-form-heading h1 { font-size: 34px; line-height: 1.25; letter-spacing: -.9px; margin: 10px 0 12px; font-weight: 700; }
.as-form-heading p { color: #8790a0; font-size: 16px; line-height: 1.8; }
.as-form-card { border: 1px solid var(--as-border); border-radius: 17px; padding: 30px; display: flex; flex-direction: column; gap: 23px; background: #fff; box-shadow: 0 8px 28px #242d4b04; }
.as-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.as-form-card label small { color: #969eac; font-size: 14px; font-weight: 400; }
.as-form-card input, .as-form-card select, .as-form-card textarea { font-size: 16px !important; }
.as-form-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-top: 5px; }
.as-form-footer > span { font-size: 13px; color: #a0a7b3; }
.as-recovery { width: 570px; max-width: 100%; }
.as-recovery > .as-welcome-icon { display: flex; }
.as-recovery .as-form-heading h1 { font-size: 32px !important; }
.as-recovery > .as-muted { margin-top: 25px !important; }
.as-recovery > .as-muted a { color: var(--as-blue) !important; }
.as-recovery-result { padding: 13px; border-radius: 9px; font-size: 15px; line-height: 1.8; background: #eff4ff; color: #496798; }
.as-verification { margin: 0 26px 22px; padding: 24px; background: #f8faff; border-radius: 13px; border: 1px solid #e3ebff; }
.as-resend { margin: 0 26px 12px; padding: 12px; border-radius: 9px; background: #f3f6ff; font-size: 14px; color: #7182a3; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.as-verification .as-welcome-icon { width: 44px; height: 44px; border-radius: 12px; margin-bottom: 12px; }
.as-verification .as-welcome-icon .as-icon { width: 23px; height: 23px; }
.as-verification p { margin: 8px 0 14px !important; font-size: 15px; color: #7b89a0; }
.as-verification label { margin-bottom: 14px; }
#akari-support .as-verification input { max-width: 240px; font-size: 28px; letter-spacing: 8px; text-align: center; }
.as-verification > .as-muted { font-size: 13px; margin-bottom: 0 !important; }
.as-closed-info { display: flex; align-items: center; gap: 8px; color: #568166; font-size: 16px; font-weight: 700; margin-bottom: 15px; }
#as-reopen label { color: #8b93a0; font-size: 14px; }
#as-reopen .as-button { margin-top: 10px; }
#akari-support .as-dialog { position: fixed; margin: auto; padding: 25px; width: 620px; max-width: calc(100% - 30px); max-height: min(80dvh,760px); border: 1px solid var(--as-border); border-radius: 18px; background: #fff; color: var(--as-text); box-shadow: 0 25px 100px #223c7433; overflow: auto; }
.as-dialog::backdrop { background: #16224155; backdrop-filter: blur(4px); }
.as-dialog-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
#akari-support .as-dialog h2 { font-size: 27px; margin-top: 5px; }
.as-template-items { margin-top: 15px; max-height: 420px; overflow-y: auto; }
#akari-support .as-template { display: block; text-align: left; width: 100%; border: 1px solid var(--as-border); border-radius: 10px; background: #fff; padding: 15px; margin-bottom: 9px; }
#akari-support .as-template:hover { border-color: #c6d5ff; background: #f8faff; }
.as-template b { display: block; font-size: 16px; margin-bottom: 6px; }
.as-template span { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; color: #8792a4; font-size: 15px; line-height: 1.7; white-space: pre-line; }
.as-template small { display: inline-block; margin-top: 9px; color: var(--as-blue); background: #eff4ff; padding: 3px 7px; border-radius: 5px; font-size: 12px; }
.as-dialog > .as-muted { margin-top: 15px !important; font-size: 13px; }
.as-toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); padding: 13px 20px; width: max-content; max-width: min(600px,calc(100% - 28px)); border-radius: 12px; background: #353535; color: #fff; box-shadow: 0 8px 35px #0002; font-size: 15px; z-index: 2147483647; }
.as-toast.is-error { background: #a9403e; }
.as-loading { padding: 70px; text-align: center; color: #9aa3b2; }
.as-sr, .as-honeypot { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip-path: inset(50%); white-space: nowrap; }
#akari-support .as-mobile-back, #akari-support .as-crm-toggle { display: none; }
@media (min-width: 1800px) { .as-workspace { grid-template-columns: 225px 380px minmax(0,1fr); } .as-crm { width: 270px; flex-basis: 270px; padding: 24px; } }
@media (max-width: 1470px) { .as-workspace { grid-template-columns: 200px 335px minmax(0,1fr); } .as-crm { display: none; position: absolute; width: 270px; top: 60px; right: 0; bottom: 0; z-index: 5; box-shadow: -10px 0 35px #20335012; } .as-crm.is-open { display: block; } .as-detail { position: relative; } #akari-support .as-crm-toggle { display: flex; } }
@media (max-width: 1120px) { .as-page > .mainwidth { max-width: calc(100% - 24px); } .as-workspace { grid-template-columns: 178px 305px minmax(0,1fr); } .as-sidebar { padding-left: 7px; padding-right: 7px; } .as-ticket-heading, .as-thread { padding-left: 18px; padding-right: 18px; } .as-composer, .as-update-banner, .as-access-hint, .as-verification { margin-left: 18px; margin-right: 18px; } .as-composer-actions { flex-wrap: wrap; } .as-composer-actions > .as-button { margin-left: auto; } .as-composer-actions kbd { display: none; } .as-composer-tabs { gap: 8px; flex-wrap: wrap; } }
@media (max-width: 960px) { .as-workspace { grid-template-columns: 282px minmax(0,1fr); grid-template-rows: auto minmax(0,1fr); height: calc(100dvh - 100px); min-height: 720px; } .as-sidebar { grid-column: 1/-1; padding: 8px; border-right: 0; border-bottom: 1px solid var(--as-border); display: block; overflow: auto; } .as-sidebar nav { display: flex; min-width: max-content; gap: 4px; } #akari-support .as-nav { width: auto; white-space: nowrap; margin: 0; padding: 9px; font-size: 14px; } .as-nav-label, .as-sidebar-bottom { display: none; } .as-ticket-heading h1 { font-size: 23px !important; } .as-queue { grid-column: 1; grid-row: 2; } .as-detail { grid-column: 2; grid-row: 2; } .as-workspace.is-guest { display: flex; } .as-workspace.is-guest .as-detail { width: 100%; } }
@media (max-width: 700px) { .as-page { padding-top: 0; padding-bottom: 18px; } .as-page > .mainwidth { max-width: calc(100% - 20px); } .as-header { margin-bottom: 18px; gap: 9px; } .as-header-actions { gap: 0; } .as-agent { display: none; } .as-brand { gap: 8px; } .as-brand b { font-size: 20px; } .as-brand small { font-size: 12px; } .as-mark { width: 36px; height: 36px; border-radius: 10px; } #akari-support .as-header .as-button { padding: 10px; font-size: 14px; min-height: 36px; } .as-header .as-button .as-icon { width: 14px; height: 14px; flex-basis: 14px; } .as-workspace { display: flex; flex-direction: column; min-height: 610px; height: calc(100dvh - 90px); max-height: none; border-radius: 13px; } .as-sidebar { flex-shrink: 0; } .as-queue { flex: 1; border-right: 0; } .as-detail { display: none; flex: 1; } .has-detail .as-detail { display: flex; } .has-detail .as-queue, .has-detail .as-sidebar { display: none; } .as-workspace.is-guest { height: auto; } .as-workspace.is-guest .as-detail { display: flex; } #akari-support .as-mobile-back { display: flex; } .as-detail-top { padding: 8px 10px; } .as-ticket-heading { padding: 18px 15px 15px; } .as-thread { padding: 0 15px 12px; } .as-composer { margin: 0 12px 14px; padding: 12px; } .as-composer textarea { min-height: 80px !important; max-height: 180px; } .as-composer-actions { padding-top: 10px; } .as-composer-tabs { gap: 11px; } #akari-support .as-composer-tabs button { font-size: 12px; } .as-composer-tabs .as-icon { display: none; } #akari-support .as-composer-tabs .as-template-button { margin-left: auto; } .as-composer-actions > .as-button { padding: 10px 12px !important; font-size: 15px; } .as-composer-meta { font-size: 11px; } .as-message { padding: 14px; border-radius: 10px; } .as-message-body { font-size: 16px; } .as-message-header time { width: 100%; margin-left: 36px; font-size: 11px; margin-top: -5px; } .as-original-label { font-size: 11px; } .as-crm { width: calc(100% - 30px); top: 53px; } .as-access-hint, .as-update-banner, .as-verification { margin-left: 15px; margin-right: 15px; } .as-to-reply { padding-left: 15px !important; } .as-standalone { margin-top: 23px; margin-bottom: 30px; } .as-form-heading h1 { font-size: 29px !important; } .as-form-card { padding: 20px 16px; gap: 19px; border-radius: 13px; } .as-form-row { grid-template-columns: 1fr; gap: 19px; } .as-form-footer { flex-direction: column-reverse; align-items: stretch; text-align: center; } .as-recovery > .as-welcome-icon { width: 55px; height: 55px; margin-bottom: 18px; } .as-verification { padding: 19px; } .as-toast { bottom: max(18px,env(safe-area-inset-bottom)); } .as-dialog { padding: 18px !important; } .as-welcome-stats { gap: 25px; } }
@media (prefers-reduced-motion: reduce) { #akari-support * { transition: none !important; scroll-behavior: auto !important; } }
@media (max-width: 700px) { #akari-support .as-composer textarea { height: 82px; min-height: 72px !important; } #akari-support .as-status-label > span { display: none; } #akari-support .as-status-label select { width: 142px; } .as-resend { margin-left: 15px; margin-right: 15px; } }
@media print { .as-page { padding: 0; } .as-workspace { display: block; height: auto; max-height: none; border: 0; } .as-sidebar, .as-queue, .as-crm, .as-header-actions, .as-composer, .as-detail-top, .as-to-reply { display: none !important; } .as-detail, .as-conversation { display: block !important; } .as-thread { overflow: visible; } .as-message { break-inside: avoid; } }

/* Readability update: no top gap above support. */
.content.as-page { padding-top: 0 !important; margin-top: 0 !important; }
@media (max-width: 700px) { #akari-support .as-composer-tabs { gap: 8px; flex-wrap: wrap; } #akari-support .as-composer-tabs button { font-size: 12px; } #akari-support .as-composer-actions { flex-wrap: wrap; } #akari-support .as-header .as-button { white-space: normal; max-width: 164px; } #akari-support .as-composer-actions > .as-button { margin-left: auto; } }

/* Mobile fields and clearer separation of tickets. */
#akari-support .as-workspace { border-color: #d8dfeb; box-shadow: 0 8px 30px #223a6010; }
#akari-support .as-queue { background: #f2f5fa; }
#akari-support .as-filters { background: #fff; border-bottom-color: #d8dfeb; }
#akari-support .as-ticket-list { padding: 12px; }
#akari-support .as-ticket { background: #fff; border: 1px solid #dce3ef; margin-bottom: 12px; padding: 16px; box-shadow: 0 2px 6px #23395806; }
#akari-support .as-ticket:hover { background: #f8faff; border-color: #b8c9ef; }
#akari-support .as-ticket.is-selected { background: #edf3ff; border-color: #0048ff; box-shadow: inset 3px 0 0 #0048ff, 0 3px 10px #0048ff0c; }
#akari-support .as-preview { color: #637087; }
#akari-support .as-ticket-top, #akari-support .as-ticket-id, #akari-support .as-ticket-bottom { color: #69758a; }
#akari-support .as-ticket-bottom { border-top: 1px solid #e6ebf4; padding-top: 10px; margin-top: 12px; }
#akari-support .as-pagination { background: #fff; border-top-color: #d8dfeb; }
#akari-support .as-filter-details > summary { padding: 10px 12px; background: #f3f6fc; border: 1px solid #e0e6f1; border-radius: 9px; color: #53617a; }
#akari-support .as-filter-details[open] > summary { color: #0048ff; border-color: #c4d3ff; background: #edf3ff; }
#akari-support .as-filter-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 12px; margin-top: 12px; padding: 14px 12px; background: #f7f9fc; border: 1px solid #e1e7f1; border-radius: 10px; }
#akari-support .as-filter-grid label { min-width: 0; max-width: 100%; color: #43516a; font-weight: 700; }
#akari-support .as-filter-grid input, #akari-support .as-filter-grid select { display: block; min-width: 0; max-width: 100%; width: 100%; border-color: #d6deeb; font-weight: 400; }
#akari-support input[type="date"] { -webkit-appearance: none; appearance: none; min-width: 0; width: 100%; max-width: 100%; height: 44px; min-height: 44px; text-align: left; }
#akari-support input[type="date"]::-webkit-date-and-time-value { text-align: left; min-width: 0; }
#akari-support input[type="date"]::-webkit-datetime-edit { padding: 0; min-width: 0; }
#akari-support .as-filter-actions { margin-top: 12px; gap: 10px; }
#akari-support .as-conversation { background: #f5f7fb; }
#akari-support .as-ticket-heading { background: #fff; border-bottom: 1px solid #e1e7f1; margin-bottom: 14px; }
#akari-support .as-message { border-color: #d8e0ed; box-shadow: 0 2px 6px #263b5c05; }
#akari-support .as-message.is-support { background: #eaf1ff; border-color: #c8d8ff; }
#akari-support .as-composer { border-color: #ccd7e9; box-shadow: 0 4px 16px #2339580a; }
@media (max-width: 700px) {
  #akari-support .as-filter-grid { max-height: min(42dvh, 360px); overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  #akari-support .as-filter-grid label:nth-last-child(-n+2), #akari-support .as-filter-grid label:has(input[type="email"]) { grid-column: 1 / -1; }
  #akari-support input, #akari-support select, #akari-support textarea, #akari-support .as-filter-grid input, #akari-support .as-filter-grid select, #akari-support .as-meta input, #akari-support .as-meta select, #akari-support .as-search input { font-size: 16px !important; }
  #akari-support .as-status-label select { width: 180px; }
  #akari-support .as-filter-grid input, #akari-support .as-filter-grid select { min-height: 44px; }
  #akari-support .as-filter-actions > .as-button { flex: 1 1 0; min-width: 0; white-space: normal; min-height: 44px; }
  #akari-support .as-queue-toolbar { flex-wrap: wrap; gap: 6px; }
  #akari-support .as-queue-toolbar > span { min-width: 90px; }
  #akari-support .as-queue-toolbar select { min-width: 0; width: 160px; max-width: 100%; font-size: 14px; }
  #akari-support .as-header { align-items: center; }
  #akari-support .as-brand, #akari-support .as-brand > span:last-child { min-width: 0; }
  #akari-support .as-brand small { overflow-wrap: anywhere; }
  #akari-support .as-header-actions { flex-shrink: 0; }
}
@media (max-width: 360px) {
  #akari-support .as-filter-grid { grid-template-columns: minmax(0, 1fr); }
  #akari-support .as-header .as-button { max-width: 132px; font-size: 13px; }
  #akari-support .as-queue-toolbar select { width: 146px; }
}

/* CRM 2.1: folded composer, six-digit verification and quiet live updates. */
#akari-support .as-live-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #64748b; white-space: nowrap; }
#akari-support .as-live-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #25a869; }
#akari-support .as-live-status.is-offline::before { background: #d99b29; }
#akari-support .as-reply-launcher { display: flex; align-items: center; gap: 12px; padding: 12px 26px 18px; border-top: 1px solid #dce3ef; background: #fff; }
#akari-support .as-draft-badge { font-size: 13px; color: #69758a; }
#akari-support .as-hide-reply { margin-left: auto; padding: 4px; border: 0; flex-shrink: 0; }
#akari-support .as-composer-tabs .as-hide-reply .as-icon { display: block; width: 18px; height: 18px; }
#akari-support .as-thread { overflow-anchor: none; }
#akari-support .as-to-reply.has-new { color: #0048ff; font-weight: 700; background: #e9efff; border-radius: 8px; margin: 0 20px 8px; padding: 8px 12px; }
#akari-support .as-code-fieldset { min-width: 0; border: 0; padding: 0; margin: 18px 0; }
#akari-support .as-code-fieldset legend { margin-bottom: 10px; font-size: 15px; font-weight: 700; }
#akari-support .as-code-inputs { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 8px; max-width: 360px; margin: 0 auto; }
#akari-support .as-code-inputs input { min-width: 0; width: 100%; height: 54px; padding: 8px 0; text-align: center; font-size: 24px !important; font-weight: 700; border-radius: 10px; }
#akari-support .as-code-inputs input:focus { border-color: #0048ff; background: #f3f6ff; }
@media (max-width: 700px) {
  #akari-support .as-live-status { display: none; }
  #akari-support .as-reply-launcher { padding: 12px 15px; flex-wrap: wrap; }
  #akari-support .as-reply-launcher .as-button { flex: 1; }
  #akari-support .as-code-inputs { gap: 6px; }
  #akari-support .as-code-inputs input { height: 48px; font-size: 22px !important; }
  #akari-support .as-workspace.is-guest { height: calc(100dvh - 90px); }
  #akari-support .as-verification { max-height: 320px; overflow-y: auto; flex-shrink: 0; padding: 14px; }
  #akari-support .as-verification .as-welcome-icon { display: none; }
}
#akari-support #as-composer-slot { flex-shrink: 0; min-width: 0; }

#akari-support .as-code-inputs input { letter-spacing: 0; }
#akari-support .as-code-help { margin-top: 10px; font-size: 13px; color: #69758a; }
#akari-support .as-code-help summary { cursor: pointer; }
@media (max-width: 700px) {
  #akari-support .as-verification h3 { font-size: 20px; }
  #akari-support .as-verification p { font-size: 13px; margin: 6px 0 10px !important; }
  #akari-support .as-code-fieldset { margin: 10px 0; }
  #akari-support .as-code-fieldset legend { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
}

/* Fit the support app to the available viewport; only its panels scroll. */
html:has(#akari-support), body:has(#akari-support) { overflow: hidden; overflow: clip; }
.content.as-page { padding-top: 15px !important; padding-bottom: 0 !important; margin-top: 0 !important; margin-bottom: 0 !important; min-height: 0 !important; }
#akari-support { display: flex; flex-direction: column; min-height: 0; height: var(--as-viewport-height,calc(100dvh - 30px)); overflow: hidden; }
#akari-support > .as-header { flex-shrink: 0; margin-bottom: 15px; }
#akari-support > .as-workspace, #akari-support > .as-workspace.is-guest { flex: 1 1 0; height: auto; min-height: 0; max-height: none; }
#akari-support .as-sidebar { min-height: 0; overflow: auto; }
#akari-support .as-filters { max-height: 65%; min-height: 0; overflow-y: auto; }
#akari-support .as-pagination { flex-shrink: 0; }
#akari-support .as-ticket-heading { max-height: 38%; min-height: 0; overflow-y: auto; }
#akari-support .as-access-hint { max-height: 22%; flex-shrink: 0; overflow-y: auto; }
#akari-support .as-thread { min-height: 0; }
#akari-support .as-to-reply { flex-shrink: 0; }
#akari-support #as-composer-slot { max-height: 55%; min-height: 0; overflow-y: auto; }
#akari-support > .as-standalone { flex: 1 1 0; min-height: 0; margin: 0 auto; padding: 10px 16px 20px; overflow-y: auto; }
@media print { html:has(#akari-support), body:has(#akari-support) { overflow: visible; } #akari-support { height: auto; overflow: visible; } }
html:has(#akari-support) { height: 100%; min-height: 0 !important; }
body:has(#akari-support) { height: 100dvh; max-height: 100dvh; min-height: 0 !important; margin: 0; box-sizing: border-box; overflow: hidden; }
@media print { html:has(#akari-support), body:has(#akari-support) { height: auto; max-height: none; overflow: visible; } }
body:has(#akari-support) > footer { display: none; }

/* Mobile editing uses the available screen instead of a small footer panel. */
@media (max-width: 700px) {
  #akari-support.is-keyboard-open { position: fixed; top: var(--as-visual-top); left: 10px; right: 10px; width: auto; height: var(--as-visual-height); z-index: 1000; background: #fff; }
  #akari-support.is-keyboard-open > .as-header,
  #akari-support.is-reply-open > .as-header,
  #akari-support.is-reply-open .as-detail-top,
  #akari-support.is-reply-open .as-ticket-heading,
  #akari-support.is-reply-open .as-thread,
  #akari-support.is-reply-open .as-to-reply,
  #akari-support.is-reply-open .as-access-hint,
  #akari-support.is-reply-open .as-update-banner,
  #akari-support.is-reply-open .as-crm { display: none; }
  #akari-support.is-reply-open #as-composer-slot { display: flex; flex: 1 1 0; max-height: none; min-height: 0; overscroll-behavior: contain; }
  #akari-support.is-reply-open .as-composer { display: flex; flex-direction: column; flex: 1 1 0; min-height: 0; margin: 0; padding: 12px; border: 0; border-radius: 0; }
  #akari-support.is-reply-open .as-composer textarea { flex: 1 1 0; height: auto !important; min-height: 120px !important; max-height: none !important; font-size: 17px !important; line-height: 1.55; resize: none; overflow-y: auto; }
  #akari-support.is-reply-open .as-composer-tabs,
  #akari-support.is-reply-open .as-composer-meta,
  #akari-support.is-reply-open .as-composer-actions { flex-shrink: 0; }
  #akari-support .as-hide-reply { min-width: 44px; min-height: 44px; }
  #akari-support > .as-standalone { overscroll-behavior: contain; scroll-padding: 12px; -webkit-overflow-scrolling: touch; }
  #akari-support #as-create textarea { height: clamp(160px, 40dvh, 320px); min-height: 160px !important; font-size: 17px !important; line-height: 1.55; }
  #akari-support.is-keyboard-open #as-create textarea { height: clamp(160px, calc(var(--as-visual-height) - 90px), 320px); }
}
@media (max-width: 700px) {
  #akari-support.is-keyboard-open .as-composer-actions > .as-muted { display: none; }
  #akari-support.is-keyboard-open .as-composer-meta { padding: 5px 0 8px; }
}
