.ac-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.15fr) minmax(235px, .85fr);
    align-items: start;
    gap: clamp(17px, 2.4vw, 30px);
    padding-block: clamp(22px, 3vw, 40px) clamp(32px, 5vw, 60px);
}
.ac-main, .ac-side { display: grid; gap: 18px; min-width: 0; }
.ac-card, .ac-notes {
    min-width: 0;
    border: 1px solid #d5d9cc;
    border-radius: 9px;
    background: #fffef9;
    box-shadow: 0 2px 7px #173f350a;
}
.ac-card { padding: clamp(17px, 2vw, 28px); }
.ac-card-title, .ac-sidenav h2, .ac-notes h2 {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    color: #203b3a;
    font-size: 20px;
    line-height: 1.4;
}
.ac-card-title .icon, .ac-notes h2 .icon { flex: none; color: #987342; }
.ac-card-title {
    margin: 0 0 21px;
    padding: 0 0 13px;
    border-bottom: 1px solid #dde0d4;
}
.ac-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 22px;
}
.ac-field { display: flex; flex-direction: column; min-width: 0; gap: 6px; }
.ac-field.ac-wide { grid-column: 1/-1; }
.ac-field label { color: #253c3b; font-size: 14px; font-weight: 700; }
.ac-field input {
    width: 100%;
    min-width: 0;
    min-height: 45px;
    padding: 10px 12px;
    border: 1px solid #bdc8ba;
    border-radius: 5px;
    background: #fffefc;
    color: #183a39;
    font: inherit;
    line-height: 1.45;
}
.ac-field input::placeholder { color: #61716a; opacity: 1; }
.ac-field input:disabled { background: #f0f2e9; color: #637269; }
.ac-field input:focus-visible, .ac-captcha-btn:focus-visible {
    outline: 2px solid #719581;
    outline-offset: 1px;
    border-color: #507b68;
}
.ac-hint { color: #56675e; font-size: 12px; line-height: 1.6; }
.ac-captcha { display: flex; align-items: stretch; gap: 8px; }
.ac-captcha input { max-width: 230px; }
.ac-captcha-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 5px;
    min-width: 88px;
    border: 1px solid #bdc8ba;
    border-radius: 5px;
    background: #fff;
    cursor: pointer;
}
.ac-captcha-btn img { width: 76px; height: 34px; object-fit: contain; color: #355046; font-size: 12px; }
.ac-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px 15px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #dde0d4;
}
.ac-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 43px;
    padding: 9px 18px;
    border-radius: 5px;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
    text-decoration: none;
    cursor: pointer;
}
.ac-primary-btn { color: #fff8e5; background: #173f42; border: 1px solid #173f42; }
.ac-primary-btn:hover { background: #245055; }
.ac-action:disabled { color: #607168; background: #e6e9df; border-color: #cdd5c7; cursor: not-allowed; }
#registration-status-text { flex: 1; min-width: min(100%, 160px); color: #4d6658; font-size: 13px; }
.ac-related {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 13px;
}
.ac-related a { color: #325c50; font-size: 13px; text-underline-offset: 3px; text-decoration: underline; }
.ac-line-card {
    background: linear-gradient(115deg, #f8fbf1, #f1f5e9 72%, #e9f0e2);
    border-color: #c9d6bd;
}
.ac-line-card .ac-card-title { border-color: #d0dac7; margin-bottom: 13px; }
.line-auth-top { display: flex; gap: 12px 24px; align-items: center; justify-content: space-between; }
.line-auth-copy { min-width: 0; overflow-wrap: anywhere; }
#line-auth-title { display: block; color: #294b3a; font-size: 17px; }
#line-auth-detail { margin: 3px 0 0; color: #4c6657; font-size: 14px; }
.line-auth-actions { flex: none; }
.line-auth-actions [hidden], #line-auth-meter[hidden] { display: none !important; }
.ac-line-btn { border: 1px solid #34714c; background: #2d6845; color: #fff; }
.ac-line-btn:hover { background: #255739; }
.ac-quiet-btn { border: 1px solid #8fa693; color: #244d37; background: #fbfcf6; }
.ac-quiet-btn:hover { background: #e5eddd; }
#line-auth-meter { margin-top: 13px; max-width: 340px; }
.line-meter-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: #4a6251;
    font-size: 12px;
}
.line-meter-track { background: #dce5d3; height: 5px; margin-top: 5px; border-radius: 5px; overflow: hidden; }
#line-meter-fill { height: 100%; width: 0; background: #598365; border-radius: inherit; }
.line-feedback { display: none; margin-top: 12px; padding: 8px 11px; border-left: 3px solid #73936c; background: #f5f8ee; color: #38553c; font-size: 13px; overflow-wrap: anywhere; }
.line-feedback.warning { color: #715021; border-color: #aa7938; background: #fbf5e5; }
.line-feedback.error { color: #812e29; border-color: #ac5347; background: #fff2e9; }
.ac-sidenav { padding: 16px 12px 10px; }
.ac-sidenav h2 { padding: 0 10px 9px; font-size: 17px; }
.ac-sidenav nav { display: grid; gap: 3px; }
.ac-sidenav a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 42px;
    padding: 9px 12px;
    border-radius: 4px;
    color: #38534a;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}
.ac-sidenav a:hover { background: #f0f3e9; }
.ac-sidenav [aria-current="page"] { background: #e6eee0; color: #244e3d; box-shadow: inset 3px 0 #537c66; }
.ac-link-arrow { color: #718376; font-size: 18px; line-height: 1; }
.ac-notes { padding: 18px 21px; background: #f5f2e6; border-color: #dfd8c0; }
.ac-notes h2 { font-size: 16px; }
.ac-notes ul { margin: 11px 0 0; padding-inline-start: 1.2rem; display: grid; gap: 9px; }
.ac-notes li { color: #575f51; font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
.ac-notes li::marker { color: #9a7c4c; }
@media (max-width: 820px) {
    .ac-layout { grid-template-columns: minmax(0,1.75fr) minmax(195px,1fr); gap: 14px; }
    .ac-form-grid { gap: 16px 12px; }
    .ac-card { padding: 16px; }
    .ac-sidenav { padding: 13px 8px 8px; }
    .line-auth-top { flex-wrap: wrap; }
}
@media (max-width: 680px) {
    .ac-layout { grid-template-columns: minmax(0,1fr); padding-block: 16px 28px; }
    .ac-main, .ac-side { gap: 12px; }
    .ac-card-title { margin-bottom: 15px; font-size: 18px; }
    .ac-side { grid-template-columns: minmax(0,1fr); }
    .ac-side .ac-notes { order: -1; }
    .ac-actions { margin-top: 18px; padding-top: 14px; }
    .ac-field input { font-size: 16px; }
}
@media (max-width: 460px) {
    .ac-form-grid { grid-template-columns: minmax(0,1fr); }
    .ac-actions .ac-primary-btn { width: 100%; }
    .ac-actions #registration-status-text { flex-basis: 100%; }
}
