/* The lounge and pay tools share the row below law search and stocks. */
.workspace-overview > .home-lounge { grid-column: 1; display: flex; flex-direction: column; }
.workspace-overview > .home-pay { grid-column: 2; }
.home-lounge .home-chat-messages { flex: 1; min-height: 220px; }
.home-lounge .home-chat-form { flex-shrink: 0; }
.home-pay { --pay-green: #16755e; scroll-margin-top: 150px; }
.home-pay [hidden] { display: none !important; }
.home-pay .daily-card-head { margin-bottom: 18px; }
.home-pay .panel-eyebrow { font-size: .875rem; }
.pay-currency-mark { display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; border-radius: 14px; background: #e9f6ef; color: var(--pay-green); font-size: 24px; }
.pay-tabs { display: flex; gap: 5px; padding: 5px; margin-bottom: 20px; border-radius: 12px; background: #f1f5f9; }
.pay-tabs button { flex: 1; min-height: 42px; padding: 7px 10px; border: 0; border-radius: 9px; background: transparent; color: #597087; font-size: .875rem; }
.pay-tabs button[aria-selected="true"] { background: #fff; color: #263e57; font-weight: 700; box-shadow: 0 2px 7px #2443670c; }
.salary-display { padding: 23px 22px 18px; border: 1px solid #d9ece3; border-radius: 16px; background: radial-gradient(ellipse at top right,#d8f2e5,transparent 75%),#f3faf6; }
.salary-caption { display: block; color: #446f5e; font-size: .875rem; }
.salary-balance { display: flex; align-items: baseline; gap: 7px; margin: 10px 0 19px; color: #195b48; font-variant-numeric: tabular-nums; white-space: nowrap; letter-spacing: -.04em; }
#salary-balance { font-size: clamp(25px,3vw,42px); line-height: 1.4; font-weight: 700; }
#salary-balance.salary-large { font-size: clamp(18px,2vw,28px); }
.salary-decimal { font-size: .65em; opacity: .7; }
.salary-won { font-size: 1rem; }
.salary-progress-track { height: 6px; overflow: hidden; border-radius: 10px; background: #d9eae1; }
#salary-progress { width: 0; height: 100%; border-radius: inherit; background: #3d9875; transition: width .3s linear; }
.salary-period { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px 10px; margin-top: 10px; font-size: .8125rem; color: #4f7665; }
#salary-countdown { font-weight: 700; }
.salary-stats { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; margin: 14px 0 22px; font-size: .875rem; color: #61778c; }
.salary-stats strong { margin-left: 5px; color: #3d6558; font-weight: 400; font-variant-numeric: tabular-nums; }
.pay-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.pay-fields label { display: flex; min-width: 0; flex-direction: column; gap: 7px; color: #405973; font-size: .875rem; }
.home-pay input,.home-pay select { width: 100%; min-width: 0; min-height: 46px; padding: 10px 12px; border: 1px solid #dbe4ed; border-radius: 9px; background: #fff; color: #2d455c; font: inherit; font-size: 1rem; }
.home-pay input:focus,.home-pay select:focus { outline: 2px solid #438c76; outline-offset: 2px; }
.home-pay input[aria-invalid="true"] { border-color: #bb5545; }
.home-pay input::placeholder { color: #8493a1; font-size: .875rem; }
.home-pay select { appearance: none; padding-right: 30px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%2361778c' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; font-size: .875rem; }
.pay-form-actions { display: flex; align-items: center; gap: 16px; margin-top: 14px; }
.home-pay .pay-primary { min-height: 44px; padding: 10px 19px; border: 0; border-radius: 9px; background: var(--pay-green); color: #fff; font-size: .875rem; font-weight: 700; }
.home-pay .pay-primary:hover { background: #105e4b; }
.pay-text-button { min-height: 44px; padding: 7px 4px; border: 0; background: transparent; color: #687c8f; font-size: .875rem; }
.home-pay .pay-message { margin: 9px 0; color: #3b6d58; font-size: .875rem; line-height: 1.7; }
.pay-message:empty { display: none; }
.home-pay .pay-message.is-error { color: #a34433; }
.home-pay .pay-note,.pay-storage-note { margin: 12px 0 0; color: #657c8d; font-size: .8125rem; line-height: 1.8; overflow-wrap: anywhere; }
.pay-storage-note { padding-top: 12px; border-top: 1px solid #e8eef3; }
.home-pay .pay-intro { margin: 0 0 18px; color: #5e7388; font-size: .875rem; }
.pay-details { margin-top: 18px; padding: 14px 0 0; border-top: 1px solid #e7edf3; color: #546c82; font-size: .875rem; }
.pay-details summary { cursor: pointer; min-height: 36px; color: #365c77; }
.pay-details .pay-fields { margin-top: 10px; }
.severance-submit { margin-top: 16px; width: 100%; }
.severance-result { margin-top: 19px; padding: 20px; border: 1px solid #dce8f5; border-radius: 14px; background: #f5f9ff; font-size: .875rem; }
.severance-result > span { color: #536f8c; }
.severance-result > span small { margin-left: 5px; font-size: .8125rem; }
#severance-total { display: block; margin: 7px 0; font-size: clamp(24px,2.7vw,34px); line-height: 1.5; color: #2c5b87; overflow-wrap: anywhere; }
#severance-result-note { margin: 8px 0 14px; color: #57748f; line-height: 1.8; }
.severance-result dl { margin: 0; padding-top: 13px; border-top: 1px solid #dce6f2; }
.severance-result dl > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 14px; margin-top: 8px; }
.severance-result dt { color: #658098; }
.severance-result dd { margin: 0; color: #355b7b; font-variant-numeric: tabular-nums; }
.pay-legal p { line-height: 1.9; margin: 12px 0; }
.pay-legal ul { padding-left: 20px; line-height: 2; margin-bottom: 10px; }
.pay-legal a { color: #376c9d; text-decoration: underline; text-underline-offset: 3px; }
@media(max-width:800px) {
 .workspace-overview > .home-lounge,.workspace-overview > .home-pay { grid-column: auto; }
 .home-pay { scroll-margin-top: 240px; }
 .salary-display { padding: 19px 15px 16px; }
 #salary-balance { font-size: clamp(25px,7vw,38px); }
 .pay-fields { gap: 12px 10px; }
 .salary-stats { gap: 8px 12px; }
}
@media(max-width:380px) {
 .pay-fields { grid-template-columns: minmax(0,1fr); }
 .salary-stats { flex-direction: column; }
}
@media(prefers-reduced-motion:reduce) { #salary-progress { transition: none; } }
