.afct-shell {
--afct-blue: #076A9A;
--afct-blue-2: #2C3E50;
--afct-green: #7EB634;
--afct-ink: #2C3E50;
--afct-muted: #5f7388;
--afct-line: #d7e4ee;
--afct-soft: #f5f9fc;
--afct-paper: #fbfdff;
--afct-danger: #9a2f2f;
background: #f2f2f2;
display: grid;
grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
gap: 22px;
width: 100%;
max-width: 100%;
height: calc(100vh - 170px);
min-height: 640px;
margin: 0;
padding: 2em;
color: var(--afct-ink);
font-family: Mulish, sans-serif;
overflow: hidden;
}
.afct-shell,
.afct-shell * {
box-sizing: border-box;
}
.afct-sidebar,
.afct-main,
.afct-empty {
border: 1px solid var(--afct-line);
background: #fff;
border-radius: 16px;
box-shadow: 0 18px 34px rgba(18, 53, 87, 0.08);
}
.afct-sidebar {
overflow: hidden;
min-height: 0;
display: grid;
grid-template-rows: auto minmax(0, 1fr);
}
.afct-account-card {
position: relative;
overflow: hidden;
padding: 28px;
background:
radial-gradient(circle at top left, rgba(126, 182, 52, 0.22), transparent 34%),
linear-gradient(135deg, #05577f 0%, var(--afct-blue) 58%, var(--afct-blue-2) 100%);
color: #fff;
}
.afct-account-card::after {
content: "";
position: absolute;
right: -86px;
bottom: -96px;
width: 240px;
height: 240px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.06);
}
.afct-kicker,
.afct-section-title,
.afct-message-label {
display: block;
font-size: 12px;
font-weight: 800;
letter-spacing: 0.08em;
text-transform: uppercase;
}
.afct-account-card .afct-kicker {
color: rgba(255, 255, 255, 0.72);
}
.afct-section-title,
.afct-message-label {
color: var(--afct-blue);
}
.afct-account-card h2,
.afct-toolbar h3,
.afct-empty h2,
.afct-empty h3 {
margin: 8px 0 10px;
font-size: clamp(26px, 3vw, 38px);
line-height: 1.06;
color: inherit;
letter-spacing: 0;
}
.afct-toolbar h3 {
font-size: clamp(22px, 2vw, 30px);
color: var(--afct-blue-2);
}
.afct-account-card p {
position: relative;
z-index: 1;
max-width: 520px;
margin: 0;
color: rgba(255, 255, 255, 0.88);
font-size: 16px;
line-height: 1.65;
}
.afct-empty p,
.afct-history-empty,
.afct-composer-footer,
.afct-history-item span {
color: var(--afct-muted);
}
.afct-credit-box {
position: relative;
z-index: 1;
display: flex;
justify-content: space-between;
align-items: center;
gap: 14px;
margin-top: 22px;
padding: 18px;
border: 1px solid rgba(255, 255, 255, 0.18);
border-radius: 14px;
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(8px);
}
.afct-credit-box span {
color: rgba(255, 255, 255, 0.82);
font-size: 14px;
font-weight: 700;
}
.afct-credit-box strong {
font-size: 42px;
line-height: 1;
color: #d6fb4a;
}
.afct-recharge-button {
position: relative;
z-index: 1;
display: flex;
align-items: center;
justify-content: center;
min-height: 46px;
margin-top: 14px;
border: 1px solid rgba(255, 255, 255, 0.22);
border-radius: 12px;
background: rgba(255, 255, 255, 0.12);
color: #fff;
font-weight: 800;
text-decoration: none;
}
.afct-recharge-button:hover {
background: rgba(255, 255, 255, 0.2);
color: #fff;
}
.afct-history {
padding: 18px;
background: linear-gradient(180deg, #ffffff 0%, var(--afct-paper) 100%);
min-height: 0;
overflow: hidden;
}
.afct-section-title {
margin-bottom: 12px;
}
.afct-history-list {
display: grid;
gap: 10px;
max-height: 100%;
overflow-y: auto;
overflow-x: hidden;
padding-right: 6px;
padding-bottom: 4px;
scrollbar-width: thin;
scrollbar-color: rgba(7, 106, 154, 0.35) transparent;
}
.afct-history-list::-webkit-scrollbar {
width: 6px;
}
.afct-history-list::-webkit-scrollbar-thumb {
background: rgba(7, 106, 154, 0.35);
border-radius: 999px;
}
.afct-history-item {
position: relative;
display: block;
width: 100%;
border: 1px solid var(--afct-line);
background: linear-gradient(180deg, #ffffff 0%, var(--afct-soft) 100%);
border-radius: 12px;
padding: 14px 16px 14px 18px;
text-align: left;
white-space: normal;
cursor: pointer;
}
.afct-history-badge {
position: absolute;
top: 10px;
right: 10px;
display: inline-flex;
align-items: center;
justify-content: center;
width: 20px;
height: 20px;
border-radius: 50%;
background: #d63638;
color: #fff !important;
font-size: 12px;
font-weight: 900;
line-height: 1;
box-shadow: 0 2px 8px rgba(214, 54, 56, 0.28);
}
.afct-history-item::before {
content: "";
position: absolute;
top: 14px;
bottom: 14px;
left: 0;
width: 4px;
border-radius: 0 999px 999px 0;
background: var(--afct-green);
opacity: 0.75;
}
.afct-history-item:hover,
.afct-history-item.is-active {
border-color: rgba(7, 106, 154, 0.42);
background: rgba(7, 106, 154, 0.08);
box-shadow: inset 0 0 0 1px rgba(7, 106, 154, 0.16);
}
.afct-history-item strong {
display: block;
margin-top: 7px;
color: var(--afct-ink);
font-size: 13px;
line-height: 1.42;
white-space: normal;
word-break: normal;
overflow-wrap: anywhere;
}
.afct-history-meta {
display: block;
margin-top: 7px;
font-size: 12px;
white-space: normal;
}
.afct-history-state {
display: inline-flex;
align-items: center;
min-height: 22px;
padding: 0 9px;
border-radius: 999px;
font-size: 11px;
font-weight: 900;
}
.afct-history-state.is-open {
background: rgba(126, 182, 52, 0.14);
color: #4d7d12;
}
.afct-history-state.is-closed {
background: rgba(95, 115, 136, 0.12);
color: var(--afct-muted);
}
.afct-history-more {
width: 100%;
min-height: 40px;
border: 1px dashed rgba(7, 106, 154, 0.35);
border-radius: 12px;
background: #fff;
color: var(--afct-blue);
font-weight: 800;
cursor: pointer;
}
.afct-history-more:hover {
background: rgba(7, 106, 154, 0.08);
}
.afct-main {
min-height: 0;
display: grid;
grid-template-rows: auto minmax(360px, 1fr) auto;
overflow: hidden;
background: #fff;
}
.afct-toolbar {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
padding: 22px 26px;
border-bottom: 1px solid var(--afct-line);
background:
radial-gradient(circle at top right, rgba(126, 182, 52, 0.11), transparent 28%),
linear-gradient(180deg, #fbfdff 0%, #f4f9fc 100%);
}
.afct-toolbar .afct-kicker {
color: var(--afct-blue);
}
.afct-messages {
min-height: 0;
padding: 26px;
overflow: auto;
background:
linear-gradient(180deg, rgba(245, 249, 252, 0.72) 0%, #ffffff 100%);
}
.afct-message {
max-width: min(860px, 82%);
margin: 0 0 18px;
}
.afct-message-user {
margin-left: auto;
}
.afct-message-body {
padding: 17px 19px;
border: 1px solid var(--afct-line);
border-radius: 14px;
background: #fff;
color: var(--afct-ink);
line-height: 1.65;
box-shadow: 0 10px 24px rgba(25, 66, 110, 0.06);
}
.afct-message-assistant .afct-message-body {
border-color: rgba(7, 106, 154, 0.16);
background: linear-gradient(180deg, #ffffff 0%, #f7fbfd 100%);
}
.afct-message-user .afct-message-body {
background: var(--afct-blue);
border-color: var(--afct-blue);
color: #fff;
}
.afct-message-pending {
opacity: 0.82;
}
.afct-message-body p {
margin: 0 0 10px;
}
.afct-message-body p:last-child {
margin-bottom: 0;
}
.afct-message-body h4 {
margin: 18px 0 10px;
padding-top: 14px;
border-top: 1px solid rgba(7, 106, 154, 0.12);
color: var(--afct-blue);
font-size: 18px;
line-height: 1.25;
letter-spacing: 0;
}
.afct-message-body h4:first-child {
margin-top: 0;
padding-top: 0;
border-top: 0;
}
.afct-message-body ul,
.afct-message-body ol {
margin: 10px 0 14px;
padding-left: 22px;
}
.afct-message-body li {
margin: 7px 0;
line-height: 1.55;
}
.afct-message-body strong {
color: var(--afct-blue-2);
font-weight: 900;
}
.afct-message-body a {
color: var(--afct-blue);
font-weight: 900;
text-decoration: underline;
text-underline-offset: 3px;
}
.afct-message-body a:hover {
color: #05577f;
}
.afct-message-user .afct-message-body strong {
color: #fff;
}
.afct-message-label {
margin: 0 0 6px 2px;
}
.afct-message-user .afct-message-label {
text-align: right;
color: var(--afct-blue-2);
}
.afct-review-pending .afct-message-body {
border-color: rgba(126, 182, 52, 0.28);
background: #fbfff4;
}
.afct-composer {
padding: 20px 26px 24px;
border-top: 1px solid var(--afct-line);
background: #fff;
}
.afct-composer textarea {
width: 100%;
min-height: 128px;
resize: vertical;
border: 1px solid var(--afct-line);
border-radius: 12px;
padding: 16px 18px;
font: inherit;
font-family: Mulish, sans-serif;
color: var(--afct-ink);
background: linear-gradient(180deg, #ffffff 0%, var(--afct-soft) 100%);
}
.afct-composer textarea:focus {
border-color: rgba(7, 106, 154, 0.5);
box-shadow: 0 0 0 4px rgba(7, 106, 154, 0.1);
outline: none;
}
.afct-composer-footer {
display: flex;
align-items: center;
justify-content: space-between;
gap: 14px;
margin-top: 14px;
font-size: 14px;
}
.afct-button {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 48px;
border: 1px solid var(--afct-blue);
border-radius: 12px;
padding: 0 22px;
background: var(--afct-blue);
color: #fff;
font-weight: 800;
text-decoration: none;
cursor: pointer;
box-shadow: 0 10px 24px rgba(7, 106, 154, 0.18);
}
.afct-button:hover {
background: #05577f;
color: #fff;
}
.afct-button:disabled {
opacity: 0.55;
cursor: wait;
}
.afct-button-secondary {
background: #fff;
color: var(--afct-blue);
box-shadow: none;
}
.afct-button-secondary:hover {
background: rgba(7, 106, 154, 0.08);
color: #05577f;
}
.afct-empty {
padding: 30px;
margin: 0;
}
.afct-messages .afct-empty {
max-width: 680px;
margin: 52px auto;
text-align: center;
}
.afct-empty h2,
.afct-empty h3 {
color: var(--afct-blue-2);
}
.afct-error,
.afct-notice {
border-color: rgba(154, 47, 47, 0.22);
background: #fff5f2;
color: var(--afct-danger);
}
.afct-notice {
margin: 16px 26px 0;
padding: 14px 16px;
border: 1px solid rgba(154, 47, 47, 0.22);
border-radius: 12px;
}
.afct-login-shell {
--afct-blue: #076A9A;
--afct-blue-2: #2C3E50;
--afct-green: #7EB634;
--afct-ink: #2C3E50;
--afct-muted: #5f7388;
--afct-line: #d7e4ee;
--afct-soft: #f5f9fc;
width: 100%;
min-height: 72vh;
display: grid;
place-items: center;
padding: 28px;
font-family: Mulish, sans-serif;
}
.afct-login-card {
width: min(100%, 520px);
padding: 34px;
border: 1px solid var(--afct-line);
border-radius: 18px;
background:
radial-gradient(circle at top right, rgba(126, 182, 52, 0.12), transparent 30%),
linear-gradient(180deg, #ffffff 0%, #f4f9fc 100%);
color: var(--afct-ink);
box-shadow: 0 22px 40px rgba(16, 45, 77, 0.14);
}
.afct-login-card .afct-kicker {
color: var(--afct-blue);
}
.afct-login-card h2 {
margin: 8px 0 10px;
color: var(--afct-blue-2);
font-size: clamp(30px, 4vw, 42px);
line-height: 1.05;
}
.afct-login-card p {
margin: 0 0 22px;
color: var(--afct-muted);
line-height: 1.65;
}
.afct-login-card label {
display: block;
margin: 12px 0 7px;
color: var(--afct-blue);
font-weight: 800;
}
.afct-login-card input[type="text"],
.afct-login-card input[type="password"] {
width: 100%;
min-height: 50px;
padding: 14px 16px;
border: 1px solid var(--afct-line);
border-radius: 12px;
background: #fff;
color: var(--afct-ink);
font: inherit;
}
.afct-login-card input[type="text"]:focus,
.afct-login-card input[type="password"]:focus {
border-color: rgba(7, 106, 154, 0.5);
box-shadow: 0 0 0 4px rgba(7, 106, 154, 0.1);
outline: none;
}
.afct-login-card .login-remember label {
display: flex;
align-items: center;
gap: 8px;
color: var(--afct-muted);
font-weight: 700;
}
.afct-login-card .button,
.afct-login-card input[type="submit"] {
width: 100%;
min-height: 48px;
margin-top: 8px;
border: 1px solid var(--afct-blue);
border-radius: 12px;
background: var(--afct-blue);
color: #fff;
font-weight: 800;
cursor: pointer;
}
.afct-login-card .button:hover,
.afct-login-card input[type="submit"]:hover {
background: #05577f;
}
.afct-login-links {
margin-top: 16px;
text-align: center;
}
.afct-login-links a {
color: var(--afct-blue);
font-weight: 800;
}
@media (min-width: 1280px) {
.afct-shell {
grid-template-columns: minmax(320px, 410px) minmax(0, 1fr);
}
.afct-message {
max-width: min(980px, 78%);
}
}
@media (max-width: 900px) {
.afct-shell {
grid-template-columns: 1fr;
gap: 16px;
height: auto;
min-height: auto;
overflow: visible;
padding: 1em;
}
.afct-sidebar {
display: block;
}
.afct-main {
display: block;
height: auto;
min-height: auto;
overflow: visible;
}
.afct-messages {
min-height: 320px;
max-height: none;
overflow: visible;
}
.afct-history {
display: none;
}
.afct-toolbar,
.afct-composer-footer {
align-items: stretch;
flex-direction: column;
}
.afct-button {
width: 100%;
}
.afct-message {
max-width: 94%;
}
}
@media (max-width: 560px) {
.afct-shell {
padding: 0.75em;
}
.afct-account-card,
.afct-toolbar,
.afct-messages,
.afct-composer {
padding-left: 18px;
padding-right: 18px;
}
.afct-account-card h2,
.afct-toolbar h3,
.afct-empty h2,
.afct-empty h3 {
font-size: 22px;
}
.afct-account-card {
padding-top: 20px;
padding-bottom: 20px;
}
.afct-main {
border-radius: 12px;
}
.afct-toolbar {
gap: 12px;
}
.afct-messages .afct-empty {
margin: 24px auto;
padding: 22px;
}
.afct-messages .afct-empty h3 {
font-size: 24px;
line-height: 1.15;
}
.afct-messages .afct-empty p {
font-size: 15px;
line-height: 1.55;
}
.afct-composer textarea {
min-height: 140px;
font-size: 16px;
}
.afct-message {
max-width: 100%;
}
}