@font-face {
  font-family: 'Liubai Handwriting';
  src: url('./profile-handwriting.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

/* 单页预览布局：统一尺寸与阅读层级 */
:root{--bg:#f3f6f9;--surface:#fffefa;--surface-2:#f1f5f8;--ink:#354b61;--ink-soft:#8492a1;--line:#e5eaf0}
body{min-height:100svh;background:linear-gradient(140deg,#f5f7fa,#f1f5f8 70%,#faf8f3)}.sky-decor{display:none}.wrap{max-width:1180px;height:auto;min-height:100svh;padding:24px;margin:0 auto;display:block}
.page-head{min-height:88px;margin:0 0 22px;padding:18px 24px;display:flex;align-items:center;border:1px solid #dce8ed;border-radius:18px;background:linear-gradient(90deg,#fffef9e6,#fffef966 65%,#fffef947),url('/seaside-background.jpg') center 65% / cover no-repeat}.brand{gap:12px}.brand-title{font-size:27px;letter-spacing:.2em}.avatar{width:40px;height:40px}.cloud-button{margin-left:auto;background:#fffef9e6}
.workspace{display:grid;grid-template-columns:minmax(285px,.82fr) minmax(0,1.65fr);gap:20px;align-items:start}.info-column,.schedule-column{display:flex;flex-direction:column;gap:18px;min-width:0}.dash-card,.summary,.calendar{width:100%;margin:0;background:var(--surface);border:1px solid var(--line);border-radius:16px;box-shadow:0 6px 22px #607d9605}
.dash-card{padding:20px 22px}.dash-card h2{font-size:13px;font-weight:600;margin:0;color:var(--ink)}.dash-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.dash-head #editProfile,.profile-actions button{width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;padding:7px;border:1px solid var(--line);background:transparent;border-radius:9px;color:var(--ink-soft)}.dash-head #editProfile:hover{color:var(--accent-deep);background:var(--surface-2)}
.profile-list{display:grid;gap:11px;margin:0;font-size:12px}.profile-list div{display:flex;align-items:baseline;gap:14px}.profile-list dt{min-width:68px;color:var(--ink-soft)}.profile-list dd{margin:0;font-weight:500;overflow-wrap:anywhere}
.holiday-reminder{padding:20px 24px;background:linear-gradient(110deg,#fffefa,#f3f7fa)}.holiday-reminder h2{font-size:11px;color:var(--ink-soft);font-weight:400;margin-bottom:8px}#nextHoliday{display:flex;align-items:baseline;justify-content:space-between;gap:16px}#nextHoliday strong{font:600 25px/1.5 'Noto Serif SC',serif;color:var(--ink)}#nextHoliday p{margin:0;color:var(--accent-deep);font-size:21px;white-space:nowrap}
.summary{display:flex;flex-direction:column;gap:16px;padding:20px 22px;min-height:0}.summary-top{display:flex;justify-content:space-between;align-items:center;min-height:28px;gap:10px}.sum-identity{display:block}.summary-top .label{font-size:13px;font-weight:600;color:var(--ink);letter-spacing:0}.year-nav{display:flex;align-items:center;gap:0;padding:0;border:0;background:transparent}.year-number{font-size:12px;font-weight:500;min-width:38px}.year-nav .nav-btn{width:23px;height:25px}
.annual-total{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;padding-top:2px}.annual-caption{font-size:10px;letter-spacing:.06em;color:var(--ink-soft)}.annual-number{display:flex;align-items:baseline;gap:6px;margin-top:6px;color:var(--accent-deep)}.annual-number .stat-primary{font-size:34px;font-weight:400;line-height:1.2}.annual-number .stat-remainder{font-size:17px}.annual-number .unit{font-size:11px;margin-left:4px}.annual-hours{font-size:10px;color:var(--ink-soft);padding-bottom:3px;white-space:nowrap}.annual-share{display:flex;height:3px;flex:none;overflow:hidden;background:var(--surface-2);border-radius:9px}.annual-share i{height:100%;background:var(--tc);transition:width .2s}
.summary .type-list{display:flex;flex-direction:column;gap:0;margin:0;width:100%;align-items:stretch}.summary .type-list .type-block{display:grid;grid-template-columns:24px minmax(0,1fr) auto;grid-template-rows:auto;align-items:center;align-content:center;gap:10px;min-width:0;min-height:58px;width:100%;padding:12px 0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent}.summary .type-list .type-block:last-child{border-bottom:0}.summary .type-list .type-block::after{display:none}.summary .type-list .type-block:hover{background:color-mix(in srgb,var(--tc) 5%,var(--surface));border-radius:7px}.summary .type-list .stat-emblem{grid-column:1;grid-row:1;width:22px;height:22px}.summary .type-list .stat-name{grid-column:2;grid-row:1;font-size:12px;color:var(--ink-soft);margin:0}.summary .type-list .stat-value{grid-column:3;grid-row:1;display:flex;justify-content:flex-end;gap:5px;margin:0;min-height:0}.summary .type-list .stat-primary{font-size:22px;line-height:1.3;font-weight:400}.summary .type-list .stat-remainder{font-size:15px}.summary .type-list .unit{font-size:10px;margin-left:3px}.summary .type-list .stat-sub{display:none}
/* 日期格参考用户图片，保留周一开头 */
.calendar{padding:22px 22px 14px;display:flex;flex-direction:column;min-height:0;flex:none}.month-head{border:0;padding:0 0 18px;gap:12px}.month-mark{display:none}.month-identity{min-width:0;gap:0}.month-title{font-size:18px;font-weight:600;letter-spacing:.015em;line-height:1.5}.month-sub{font-size:10px;margin-top:4px;max-width:320px;line-height:1.5}.month-nav{gap:4px}.month-nav .nav-btn{width:26px;height:30px}.today-btn{display:inline-flex;align-items:center;justify-content:center;gap:5px;width:auto;min-width:57px;height:30px;padding:0 9px;border:1px solid var(--line);border-radius:9px;background:transparent;color:var(--ink-soft);font-size:11px}.today-btn .icon{width:14px;height:14px}.today-btn:hover{border-color:var(--accent);color:var(--accent-deep)}
.week-head{padding:0 0 8px;border:0;gap:5px}.week-head span{font-size:11px}.grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));grid-template-rows:repeat(var(--weeks,6),minmax(65px,1fr));gap:5px;flex:none;min-height:0;margin-top:0}.cell{min-height:65px;padding:7px 7px 6px;align-items:flex-start;justify-content:flex-start;gap:2px;border:1px solid #e7e6df;border-radius:9px;background:transparent;box-shadow:none;text-align:left;overflow:hidden}.cell.empty{visibility:hidden}.cell .d,.cell.has .d{font-size:13px;line-height:18px;min-height:18px;position:static;font-weight:400;color:var(--ink)}.cell.we .d{color:var(--weekend)}.lunar-day{font-size:9px;color:var(--ink-soft);line-height:14px;white-space:nowrap}.cell .h,.cell.has .h{position:static;font-size:8px;line-height:12px;min-height:0;max-width:100%;margin-top:auto;white-space:nowrap;color:var(--tc-deep);overflow:hidden;text-overflow:ellipsis}.cell.has{background:color-mix(in srgb,var(--tc) 4%,var(--surface))}.cell.has::before{display:none}.cell.has::after{content:'';position:absolute;right:6px;bottom:7px;width:4px;height:4px;background:var(--tc);border-radius:50%}.cell.today{outline:none;border:1.5px solid var(--accent-deep);background:#f7fafb;box-shadow:none}.cell.today .d{width:auto;height:auto;border-radius:0;background:transparent;color:var(--accent-deep);font-weight:700;box-shadow:none;text-align:left}.cell:not(.empty):hover{background:#f1f6fa;border-color:#c0d1e0}.cell.selected{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}.calendar-foot{margin:12px 0 0;padding-top:10px;font-size:9px;color:var(--ink-faint)}
.profile-dialog{width:min(350px,calc(100vw - 32px));padding:24px;border:1px solid var(--line);border-radius:18px;background:var(--surface);color:var(--ink);box-shadow:var(--shadow-pop)}.profile-dialog::backdrop{background:#34476126;backdrop-filter:blur(3px)}.profile-form{display:grid;grid-template-columns:1fr;gap:14px}.profile-form label{font-size:12px;color:var(--ink-soft)}.profile-form input{display:block;width:100%;margin-top:5px;padding:9px 10px;background:var(--surface-2);border:1px solid var(--line);border-radius:8px;color:var(--ink)}.profile-actions{display:flex;justify-content:flex-end;gap:8px}.profile-actions button[type=submit]{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}.profile-error{font-size:12px;color:var(--shi-deep)}
@media(max-width:850px){.wrap{padding:16px;max-width:760px}.workspace{grid-template-columns:270px minmax(0,1fr);gap:14px}.dash-card,.summary{padding:18px}.calendar{padding:18px 12px 12px}.grid{gap:3px;grid-template-rows:repeat(var(--weeks,6),minmax(62px,1fr))}.cell{padding:6px 4px;min-height:62px}.month-title{font-size:16px}.month-head{flex-wrap:wrap}.month-nav{margin-left:auto}.holiday-reminder{padding:18px}#nextHoliday{gap:8px}#nextHoliday strong{font-size:22px}#nextHoliday p{font-size:18px}}
@media(max-width:650px){.wrap{padding:12px}.page-head{min-height:76px;padding:14px 18px;margin-bottom:14px}.brand-title{font-size:24px}.workspace{display:flex;flex-direction:column;gap:14px}.info-column,.schedule-column{display:contents}.workspace>.info-column>.dash-card{order:1;width:100%}.holiday-reminder{order:2}.calendar{order:3;width:100%;padding:18px 12px 12px}.summary{order:4;width:100%}.profile-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 20px}.profile-list div{display:block}.profile-list dt{font-size:10px;min-width:0;margin-bottom:4px}.profile-list dd{font-size:12px}.dash-head{margin-bottom:14px}.month-head{flex-wrap:nowrap;padding-bottom:14px;gap:5px}.month-title{font-size:16px}.month-sub{font-size:9px;max-width:190px}.month-nav{gap:1px}.month-nav .nav-btn{width:23px}.today-btn{min-width:48px;padding:0 6px}.grid{grid-template-rows:repeat(var(--weeks,6),minmax(62px,1fr))}.summary .type-list .type-block{min-height:52px}.cloud-button{font-size:10px}}

/* 内容互换后按栏宽重新编排 */
.info-column>.holiday-reminder{padding:22px;background:linear-gradient(150deg,#f5f8fb,#fffefa)}.info-column>.holiday-reminder h2{font-size:13px;color:var(--ink);font-weight:600;margin-bottom:18px}#nextHoliday{display:flex;flex-direction:column;align-items:stretch;gap:0}.upcoming-main{display:flex;flex-direction:column;gap:7px;padding-bottom:18px}.upcoming-main strong{font-size:29px!important;line-height:1.4!important}.upcoming-main .upcoming-count{color:var(--accent-deep);font-size:20px}.upcoming-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;border-top:1px solid var(--line);font-size:12px}.upcoming-row .upcoming-count{color:var(--ink-soft);font-size:11px;white-space:nowrap}
.schedule-column>.summary{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px 20px;padding:20px 24px;align-items:center}.schedule-column .summary-top{grid-column:1;grid-row:1;display:flex;justify-content:flex-start;gap:20px;width:100%}.schedule-column .annual-total{grid-column:2;grid-row:1;padding:0;gap:12px;align-items:baseline}.schedule-column .annual-caption,.schedule-column .annual-hours{display:none}.schedule-column .annual-number{margin:0}.schedule-column .annual-number .stat-primary{font-size:28px}.schedule-column .annual-share{grid-column:1/-1;grid-row:3}.schedule-column .summary .type-list{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;align-items:stretch;grid-template-rows:auto}.schedule-column .summary .type-list .type-block{grid-template-columns:20px minmax(0,1fr);grid-template-rows:auto auto;gap:6px 8px;min-height:64px;padding:5px 14px;border:0;border-right:1px solid var(--line);border-radius:0;align-content:start}.schedule-column .summary .type-list .type-block:first-child{padding-left:0}.schedule-column .summary .type-list .type-block:last-child{border-right:0}.schedule-column .summary .stat-emblem{grid-column:1;grid-row:1;width:18px;height:18px}.schedule-column .summary .stat-name{grid-column:2;grid-row:1;font-size:11px}.schedule-column .summary .stat-value{grid-column:1/-1;grid-row:2;justify-content:flex-start;text-align:left}.schedule-column .summary .stat-primary{font-size:23px}.schedule-column .summary .stat-remainder{font-size:14px}
@media(max-width:850px) and (min-width:651px){.schedule-column>.summary{padding:18px 14px;gap:14px 10px}.schedule-column .summary-top{gap:8px}.schedule-column .summary .type-list .type-block{padding:4px 6px;gap:6px 4px}.schedule-column .summary .stat-value{flex-wrap:wrap}.schedule-column .summary .stat-primary{font-size:20px}}
@media(max-width:650px){.workspace>.info-column>.holiday-reminder{order:5}.schedule-column>.summary{order:3;width:100%;padding:18px;gap:14px 12px}.calendar{order:4}.schedule-column .summary-top{gap:12px}.schedule-column .summary .type-list .type-block{padding:4px 8px;gap:6px 4px}.schedule-column .summary .stat-primary{font-size:21px}.schedule-column .summary .stat-value{flex-wrap:wrap}.upcoming-main{flex-direction:row;align-items:baseline;justify-content:space-between;gap:12px}.upcoming-main strong{font-size:26px!important}.upcoming-main .upcoming-count{font-size:19px}}

/* 电脑端一屏：左右栏等高，余下空间交给节日与日历 */
@media(min-width:851px){
 .wrap{height:100svh;min-height:0;max-width:1240px;padding:18px 24px;display:flex;flex-direction:column;overflow:hidden}
 .page-head{flex:none;min-height:76px;margin-bottom:16px;padding:12px 22px}
 .workspace{flex:1;min-height:0;align-items:stretch;gap:20px}
 .info-column,.schedule-column{min-height:0;height:100%;gap:16px}
 .info-column>.dash-card:first-child{flex:none;padding:18px 22px}.profile-list{gap:9px}.dash-head{margin-bottom:12px}
 .info-column>.holiday-reminder{flex:1;min-height:0;display:flex;flex-direction:column;padding:20px 22px}
 .info-column>.holiday-reminder h2{flex:none;margin-bottom:12px}
 #nextHoliday{flex:1;min-height:0;display:flex;flex-direction:column}
 .upcoming-main{flex:1;justify-content:center;gap:6px;padding-bottom:14px}
 .upcoming-row{flex:none;padding:12px 0}
 .schedule-column>.summary{flex:none;gap:10px 16px;padding:16px 22px;min-height:0}
 .schedule-column .summary .type-list .type-block{min-height:52px;padding-top:0;padding-bottom:0}
 .schedule-column .summary .annual-number .stat-primary{font-size:25px}
 .schedule-column>.calendar{flex:1;min-height:0;display:flex;flex-direction:column;padding:18px 18px 12px}
 .month-head{flex:none;padding-bottom:12px}.month-title{font-size:18px}.month-sub{margin-top:2px}
 .week-head{flex:none;padding-bottom:7px}
 .schedule-column .calendar .grid{flex:1;min-height:0;grid-template-rows:repeat(var(--weeks,6),minmax(0,1fr));gap:4px}
 .schedule-column .calendar .cell{min-height:0;padding:5px 6px;gap:0}
 .schedule-column .calendar .cell .d{min-height:16px;font-size:12px;line-height:16px}
 .schedule-column .calendar .lunar-day{font-size:9px;line-height:12px}
 .calendar-foot{flex:none;margin-top:8px;padding-top:7px}
}
@media(min-width:851px) and (max-height:680px){
 .wrap{padding:12px 20px}.page-head{min-height:60px;margin-bottom:12px;padding:9px 18px}.avatar{width:34px;height:34px}.brand-title{font-size:24px}
 .info-column,.schedule-column{gap:12px}.info-column>.dash-card:first-child{padding:16px 20px}.profile-list{gap:7px}.dash-head{margin-bottom:10px}.info-column>.holiday-reminder{padding:16px 20px}.info-column>.holiday-reminder h2{margin-bottom:8px}
 .upcoming-main strong{font-size:25px!important}.upcoming-main .upcoming-count{font-size:18px}.upcoming-main{padding-bottom:9px}.upcoming-row{padding:9px 0}
 .schedule-column>.summary{padding:12px 18px;gap:8px 12px}.schedule-column .summary .type-list .type-block{min-height:45px}.schedule-column .summary .stat-primary{font-size:20px}
 .schedule-column>.calendar{padding:14px 14px 10px}.month-head{padding-bottom:9px}.month-sub,.calendar-foot{display:none}.week-head{padding-bottom:5px}
 .schedule-column .calendar .cell{padding:3px 5px}.schedule-column .calendar .lunar-day{font-size:8px;line-height:10px}.schedule-column .calendar .cell .h{font-size:8px;line-height:10px}
}
@media(min-width:851px) and (max-height:540px){.wrap{height:auto;min-height:100svh;overflow:visible}.workspace{flex:none}.schedule-column>.calendar{min-height:350px}.info-column,.schedule-column{height:auto}}

/* 节日全部采用简洁列表，不突出首项 */
.info-column>.holiday-reminder #nextHoliday{flex:initial;display:flex;flex-direction:column;justify-content:flex-start;gap:0}
#nextHoliday .upcoming-row{display:flex;align-items:center;justify-content:space-between;gap:16px;flex:none;padding:15px 0;border:0;border-bottom:1px solid var(--line);font-size:12px;color:var(--ink)}
#nextHoliday .upcoming-row:last-child{border-bottom:0}
#nextHoliday .upcoming-count{font-size:11px;font-weight:400;color:var(--ink-soft);white-space:nowrap}

/* 基础信息：扩大区域、行距与信息字重 */
.info-column>.dash-card:first-child{padding:25px 24px}
.info-column>.dash-card:first-child .dash-head{margin-bottom:22px}
.info-column>.dash-card:first-child h2{font-size:14px;font-weight:700}
.profile-list{gap:17px;font-size:13px;line-height:1.7}
.profile-list div{gap:18px}.profile-list dt{min-width:76px;font-weight:500}.profile-list dd{font-weight:600;color:var(--ink)}
@media(min-width:851px) and (max-height:680px){.info-column>.dash-card:first-child{padding:20px 22px}.info-column>.dash-card:first-child .dash-head{margin-bottom:16px}.profile-list{gap:12px;font-size:12px}}
@media(max-width:650px){.info-column>.dash-card:first-child{padding:22px}.profile-list{gap:17px 22px}.profile-list dt{font-size:11px;margin-bottom:5px}.profile-list dd{font-size:13px;font-weight:600}.info-column>.dash-card:first-child .dash-head{margin-bottom:18px}}

/* 轻装饰：使用用户原图，不挤占节日列表 */
.info-column>.holiday-reminder{position:relative;overflow:hidden}
.cheer-decoration{margin:16px 0 0;flex:1 1 140px;min-height:0;max-height:170px;border-radius:12px;overflow:hidden;position:relative;background:#f8df77}
.cheer-decoration img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 38%}
@media(min-width:851px){.cheer-decoration{margin-top:auto;flex:1 1 0;max-height:170px}.info-column>.holiday-reminder #nextHoliday{flex:none}.info-column>.holiday-reminder{gap:8px}.info-column>.holiday-reminder h2{margin-bottom:0}}
@media(max-width:850px){.cheer-decoration{height:140px;flex:none;margin-top:14px}}
@media(min-width:851px) and (max-height:680px){.info-column>.holiday-reminder{gap:4px}.info-column>.holiday-reminder #nextHoliday .upcoming-row{padding:10px 0}.cheer-decoration{max-height:100px}}

/* 装饰图稍作淡化 */
.cheer-decoration{background:#fffefa}.cheer-decoration img{opacity:.72}

/* 头像与海边背景合入基础信息，移除全页标题栏 */
.info-column>.dash-card:first-child{padding:0;overflow:hidden}
.profile-cover.page-head{position:relative;display:flex;align-items:center;justify-content:center;margin:0;padding:16px;min-height:96px;height:96px;border:0;border-bottom:1px solid #e2eaf0;border-radius:15px 15px 0 0;background:linear-gradient(90deg,#fffef97a,#fffef93d),url('/seaside-background.jpg') center 65% / cover no-repeat;box-shadow:none;flex:none}
.profile-cover .avatar{display:block;flex:none;width:62px;height:62px;border:3px solid #fffefa;box-shadow:0 3px 12px #496c8b26}
.profile-cover .cloud-button{position:absolute;top:10px;right:10px;width:30px;min-height:30px;padding:7px;background:#fffef9df;margin:0;border-radius:9px}
.profile-cover #cloudStatus{display:none}
.info-column>.dash-card:first-child .dash-head{margin:18px 22px 18px}.info-column>.dash-card:first-child .profile-list{grid-template-columns:minmax(0,1fr);gap:14px;margin:0 22px 22px}
.profile-list div{display:grid;grid-template-columns:minmax(4.4em,26%) minmax(0,1fr);align-items:baseline;gap:0}.profile-list dt{min-width:0;margin:0}.profile-list dd{text-align:center;font-weight:600;margin:0}
.schedule-column .annual-total{display:none}.schedule-column .summary-top{grid-column:1/-1;justify-content:space-between}
@media(min-width:851px){.workspace{height:100%}.profile-cover.page-head{height:96px;min-height:96px}.info-column>.dash-card:first-child .dash-head{margin:16px 22px}.info-column>.dash-card:first-child .profile-list{gap:12px;margin-bottom:22px}}
@media(min-width:851px) and (max-height:680px){.profile-cover.page-head{height:76px;min-height:76px;padding:10px}.profile-cover .avatar{width:52px;height:52px}.info-column>.dash-card:first-child .dash-head{margin:13px 20px}.info-column>.dash-card:first-child .profile-list{gap:10px;margin:0 20px 18px}}
@media(max-width:650px){.profile-cover.page-head{height:100px;min-height:100px}.info-column>.dash-card:first-child .dash-head{margin:18px 22px}.profile-list dt{font-size:12px}.profile-list dd{font-size:13px}}

/* 节日区参考宋体与灰绿字色，用标签替代普通名称 */
.info-column>.holiday-reminder h2{font-family:'Noto Serif SC','Songti SC','SimSun',serif;font-size:15px;font-weight:600;color:#485345;letter-spacing:.04em}
#nextHoliday .upcoming-row{border-bottom-color:#e5e9df;padding:13px 0}
#nextHoliday .festival-tag{display:inline-flex;align-items:center;padding:3px 10px;border:1px solid #e0e6d8;border-radius:999px;background:#f1f5ec;color:#627153;font-size:12px;font-weight:500;line-height:1.5}
#nextHoliday .upcoming-count{font-size:12px;font-weight:500;color:#627153;line-height:1.5;font-variant-numeric:tabular-nums}
@media(min-width:851px) and (max-height:680px){#nextHoliday .upcoming-row{padding:9px 0}}

/* 头像移至年度概览右上，年份回到标题旁 */
.schedule-column .summary-top{justify-content:flex-start;gap:12px}
.schedule-column .summary-top .year-nav{margin:0}
.schedule-column .summary-top .profile-cover.page-head{margin:0 0 0 auto;flex:none;min-height:46px;height:46px;width:46px;padding:4px;border:1px solid #dce7ed;border-radius:50%;background:linear-gradient(#fffef955,#fffef933),url('/seaside-background.jpg') center 65% / cover no-repeat}
.schedule-column .summary-top .profile-cover .avatar{width:36px;height:36px;border:2px solid var(--surface);box-shadow:none}
.profile-cover .cloud-button{inset:0;margin:0;width:100%;height:100%;min-height:0;border:0;border-radius:50%;background:transparent;color:transparent;padding:0}
.profile-cover .cloud-button .icon,.profile-cover #cloudStatus{display:none}
.profile-cover .cloud-button:hover{background:#7b9bbd15}
.info-column>.dash-card:first-child .dash-head{margin-top:22px}
@media(max-width:650px){.schedule-column .summary-top{gap:10px}.schedule-column .summary-top .profile-cover.page-head{width:42px;height:42px;min-height:42px}.schedule-column .summary-top .profile-cover .avatar{width:32px;height:32px}}

/* 全页统一字体，统计图标统一线条 */
:root{--app-font:'Liubai Handwriting','STXingkai','Kaiti SC','KaiTi',cursive}
body,button,input,select,textarea,.info-column>.holiday-reminder h2,#nextHoliday .upcoming-count,#nextHoliday strong,.month-title,.year-number,.stat-primary,.stat-remainder,.brand-title{font-family:var(--app-font)}
.stat-value,.annual-number,.year-number,.cell .d{font-variant-numeric:tabular-nums}
.schedule-column .summary .stat-emblem{stroke-width:1.5;opacity:.9}
/* 去掉标题文字，年份与头像置于海边背景横栏 */
.schedule-column>.summary{overflow:hidden}
.schedule-column .summary-top{width:calc(100% + 48px);margin:-20px -24px 0;padding:12px 24px;min-height:82px;background:linear-gradient(90deg,#fffef9b8,#fffef970 60%,#fffef947),url('/seaside-background.jpg') center 65% / cover no-repeat;border-bottom:1px solid #e2eaf0;gap:0;box-sizing:border-box}
.schedule-column .summary-top .sum-identity{display:none}
.schedule-column .summary-top .profile-cover.page-head{height:60px;min-height:60px;width:60px;padding:3px;border:0;background:transparent}
.schedule-column .summary-top .profile-cover .avatar{width:54px;height:54px;border:3px solid var(--surface);box-shadow:0 3px 10px #45678321}
@media(min-width:851px){.schedule-column .summary-top{width:calc(100% + 44px);margin:-16px -22px 0;padding:10px 22px;min-height:80px}}
@media(max-width:850px){.schedule-column .summary-top{width:calc(100% + 28px);margin:-18px -14px 0;padding:10px 14px}}
@media(min-width:851px) and (max-height:680px){.schedule-column .summary-top{width:calc(100% + 36px);margin:-12px -18px 0;padding:8px 18px;min-height:70px}.schedule-column .summary-top .profile-cover.page-head{height:54px;min-height:54px;width:54px}.schedule-column .summary-top .profile-cover .avatar{width:48px;height:48px}}
@media(max-width:650px){.schedule-column .summary-top{width:calc(100% + 36px);margin:-18px -18px 0;padding:10px 18px}}

/* 日历年月直接翻动，头像使用海景横栏的可用高度 */
.month-heading { display: flex; align-items: center; gap: 5px; }
.month-heading .month-title { white-space: nowrap; }
.month-heading .nav-btn { width: 25px; height: 28px; flex: none; }
.schedule-column .summary-top .profile-cover.page-head { width: 70px; height: 70px; min-height: 70px; }
.schedule-column .summary-top .profile-cover .avatar { width: 64px; height: 64px; }
@media (max-height: 680px), (max-width: 650px) {
  .schedule-column .summary-top .profile-cover.page-head { width: 62px; height: 62px; min-height: 62px; }
  .schedule-column .summary-top .profile-cover .avatar { width: 56px; height: 56px; }
}
.info-column > .dash-card:first-child .dash-head { margin: 24px 24px 29px; }
.info-column > .dash-card:first-child h2 { font-size: 15px; font-weight: 700; }
.info-column > .dash-card:first-child .profile-list { gap: 23px; margin: 0 24px 30px; font-size: 14px; }
.profile-list dt, .profile-list dd { color: #20252b; font-size: inherit; letter-spacing: 0.1em; font-family: var(--app-font); }
.profile-list dt { font-weight: 700; inline-size: 4.4em; text-align: justify; text-align-last: justify; white-space: nowrap; }
.profile-list dd {
  font-weight: 700;
  position: relative;
  padding-bottom: 0.22em;
}
.profile-list dd::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 8em;
  max-width: 100%;
  border-bottom: 1.5px solid currentColor;
  transform: translateX(-50%);
}
@media (min-width: 851px) and (max-height: 680px) {
  .info-column > .dash-card:first-child .dash-head { margin: 18px 20px 22px; }
  .info-column > .dash-card:first-child .profile-list { gap: 16px; margin: 0 20px 22px; }
}
/* 节日区域独立滚动，插画按比例完整显示 */
.info-column > .holiday-reminder #nextHoliday {
  --festival-row-height: 42px;
  flex: 0 0 auto;
  height: calc(5 * var(--festival-row-height));
  min-height: 0;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
  scrollbar-color: #ccdbe7 transparent;
  padding-inline-end: 7px;
}
.info-column > .holiday-reminder .cheer-decoration {
  flex: 0 0 auto;
  height: clamp(62px, 15vh, 145px);
  margin: 8px 0 0;
  background: transparent;
}
.cheer-decoration img { object-fit: contain; object-position: center; }
@media (min-width: 851px) and (max-height: 680px) {
  .info-column > .holiday-reminder #nextHoliday { --festival-row-height: 34px; }
  .info-column > .holiday-reminder .cheer-decoration { flex: 1 1 62px; }
}
.cloud-dismiss { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.cloud-dismiss:has(button[hidden]) { display: none; }
.cloud-dialog #syncKeyInput { margin-top: 5px; }
.cloud-dialog #cloudWelcome .cloud-label { margin-top: 16px; }
.cloud-dialog .cloud-message:empty { display: none; }

#nextHoliday .festival-labels { display: contents; }
.festival-statutory {
  padding: 2px 6px;
  border: 1px solid #dde7f0;
  border-radius: 999px;
  background: #edf4fa;
  color: #466888;
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
}
.info-column > .holiday-reminder .cheer-decoration {
  isolation: isolate;
  background: #fff8dc;
}


/* 年月入口与当天标记共用雾蓝高亮。 */
.month-picker-trigger { display: block; padding: 3px 9px; border: 0; border-radius: 8px; background: transparent; color: #345a80; font: inherit; }
.month-picker-trigger:hover { color: #244a71; text-decoration: underline; text-underline-offset: 4px; }
.month-picker h2 { margin: 0 0 14px; font-size: 15px; }
.month-picker .profile-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.month-picker .profile-actions { grid-column: 1 / -1; }
.calendar .cell.today, .calendar .cell.today:hover { border-color: #5881a8; background: #e4eff8; }
.calendar .cell.today .d, .calendar .cell.today .lunar-day { color: #325b82; font-weight: 700; }
/* 固定分类栏宽度，确保标签起点逐行对齐。 */
#nextHoliday .upcoming-row {
  display: grid;
  grid-template-columns: max-content 64px 34px 64px;
  justify-content: space-between;
  gap: 4px;
}
#nextHoliday .festival-tag { grid-area: 1 / 1; justify-self: start; padding-inline: 6px; }
#nextHoliday .festival-tag, #nextHoliday .festival-statutory, #nextHoliday .upcoming-count {
  border-color: #dde7f0;
  background: #edf4fa;
  color: #466888;
}
#nextHoliday .festival-categories {
  grid-area: 1 / 2;
  justify-self: start;
  display: flex;
  align-items: center;
}
#nextHoliday .festival-categories .festival-statutory {
  inline-size: calc(5em + 14px);
  text-align: justify;
  text-align-last: justify;
}
#nextHoliday .festival-duration { grid-area: 1 / 3; inline-size: 100%; padding-inline: 2px; text-align: center; }
#nextHoliday .upcoming-count { grid-area: 1 / 4; inline-size: 100%; text-align: center; padding: 3px 2px; border-width: 1px; border-style: solid; border-radius: 999px; font-size: 10px; }
.info-column > .holiday-reminder .cheer-decoration { background: transparent; }
.cheer-decoration img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }

/* 两个周末列分别用淡蓝与淡玫瑰色标记。 */
.calendar .saturday { --weekend-ink: #426d93; --weekend-bg: #f0f6fb; }
.calendar .sunday { --weekend-ink: #99586a; --weekend-bg: #fcf2f4; }
.calendar .week-head .we { color: var(--weekend-ink); font-weight: 700; }
.calendar .cell.we:not(.has):not(.today) { background: var(--weekend-bg); }
.calendar .cell.we:not(.has):not(.today) .d { color: var(--weekend-ink); font-weight: 600; }

/* 收紧节日卡片的纵向留白。 */
.info-column > .holiday-reminder { padding-block: 15px; gap: 6px; }
.info-column > .holiday-reminder #nextHoliday .upcoming-row {
  box-sizing: border-box;
  height: var(--festival-row-height);
  padding-block: 0;
  scroll-snap-align: start;
}

/* 缩小左侧两张信息卡之间的间距。 */
.workspace .info-column { gap: 4px; }

@media (max-width: 650px) {
  .info-column .dash-head .profile-cover.page-head {
    width: 44px;
    height: 44px;
    min-height: 44px;
    margin: 0 0 0 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
  }
  .info-column .dash-head .profile-cover .avatar { width: 42px; height: 42px; }
  .schedule-column .summary-top { min-height: 42px; padding-block: 0; }
}

/* 月历统计沿用假期类型的颜色。 */
.calendar .month-sub.has-month-totals {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  max-width: none;
  margin-top: 6px;
}
.month-period-tag { --tc: #91a7bb; --tc-deep: #50677e; font-weight: 600; }
.month-period-tag, .month-leave-tag {
  padding: 2px 7px;
  border: 1px solid color-mix(in srgb, var(--tc) 28%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--tc) 12%, var(--surface));
  color: var(--tc-deep);
  white-space: nowrap;
  font-size: 10px;
  line-height: 1.5;
}
#nextHoliday .festival-statutory[data-category="传统节日"] {
  border-color: #dde7d6;
  background: #eef4e9;
  color: #55724a;
}
#nextHoliday .festival-statutory[data-category="纪念日"] {
  border-color: #e7def0;
  background: #f3edf8;
  color: #745687;
}
#nextHoliday .festival-statutory[data-category="现代节日"] {
  border-color: #eedce6;
  background: #faedf3;
  color: #935573;
}
#nextHoliday .festival-statutory.festival-duration {
  border-color: #eee2cc;
  background: #fbf3e4;
  color: #85623e;
}

.calendar .today-btn {
  flex: none;
  align-self: flex-start;
  white-space: nowrap;
  margin-inline-end: 32px;
  letter-spacing: 0.1em;
  color: #345a80;
  border-color: #ccdeed;
  background: #edf5fc;
}
.calendar .today-btn:hover { background: #e1eef9; }
@media (max-width: 650px) {
  .calendar .today-btn { margin-inline-end: 8px; }
}

/* 收窄年度明细，让日期与时长更靠近。 */
.records-pop { width: min(320px, calc(100vw - 24px)); }

/* 桌面双栏的插画与日历共用底部留边。 */
@media (min-width: 851px) and (min-height: 541px) {
  .workspace { --panel-bottom-gap: 12px; }
  .info-column > .holiday-reminder,
  .schedule-column > .calendar { padding-block-end: var(--panel-bottom-gap); }
  .info-column > .holiday-reminder .cheer-decoration { flex: 1 1 auto; max-height: none; }
}
@media (min-width: 851px) and (max-height: 680px) {
  .workspace { --panel-bottom-gap: 10px; }
}

@media (max-width: 650px) {
  .info-column .dash-head #editProfile { margin-inline-start: auto; }
  .calendar .month-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 6px; }
  .calendar .month-identity, .calendar .month-identity > div { display: contents; }
  .calendar .month-heading { grid-area: 1 / 1; }
  .calendar .today-btn { grid-area: 1 / 2; margin-inline-end: 0; align-self: center; }
  .calendar .month-sub { grid-area: 2 / 1 / 3 / -1; max-width: none; }
  .calendar .grid { grid-template-rows: repeat(var(--weeks, 6), auto); }
  .calendar .cell {
    width: 100%;
    min-height: 54px;
    aspect-ratio: 1;
    padding: 4px;
    gap: 0;
    align-items: center;
    text-align: center;
  }
  .calendar .cell .d { text-align: center; }
  .calendar .cell .d { min-height: 14px; line-height: 14px; }
  .calendar .cell .lunar-day, .calendar .cell .h { line-height: 10px; }
  .calendar .cell.has .lunar-day { margin-block-end: 0; }
  .calendar .cell.has .h { margin-top: 0; }
  .calendar .cell.has::after {
    content: attr(data-leave-kind);
    top: 5px;
    right: 4px;
    bottom: auto;
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
    color: var(--tc-deep);
    font-size: 9px;
    font-weight: 600;
    line-height: 1;
  }
  .calendar .cell.has .leave-kind { display: none; }
  .calendar .cell.has .h { font-size: 9px; }
}

#nextHoliday { container-type: inline-size; }
#nextHoliday .festival-tag {
  display: block;
  inline-size: 4.2em;
  text-align: justify;
  text-align-last: justify;
  white-space: nowrap;
}
@container (max-width: 300px) {
  #nextHoliday .upcoming-row {
    grid-template-columns: max-content 51px 26px 52px;
    gap: 2px;
  }
  #nextHoliday .festival-tag,
  #nextHoliday .festival-statutory,
  #nextHoliday .upcoming-count { font-size: 9px; padding-inline: 2px; }
  #nextHoliday .festival-categories .festival-statutory { inline-size: calc(5em + 6px); }
}

.info-column > .dash-card:first-child h2,
.info-column > .holiday-reminder h2 {
  font-family: var(--app-font);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0;
  text-align: left;
  white-space: nowrap;
}
.calendar .month-sub.has-month-totals { margin-inline-start: 30px; }
@media (max-width: 380px) {
  .calendar .month-sub.has-month-totals { margin-inline-start: 8px; }
}

.festival-filters {
  display: flex;
  flex-wrap: nowrap;
  flex: none;
  gap: 10px;
  margin-block: 2px 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.festival-filters button {
  --filter-border: #e0e5ea;
  --filter-bg: #f0f3f5;
  --filter-ink: #526476;
  flex: none;
  padding: 3px 8px;
  border: 1px solid var(--filter-border);
  border-radius: 999px;
  background: var(--filter-bg);
  color: var(--filter-ink);
  font-size: 10px;
  line-height: 1.5;
  white-space: nowrap;
}
.festival-filters button[data-category="法定节假日"] { --filter-border: #dde7f0; --filter-bg: #edf4fa; --filter-ink: #466888; }
.festival-filters button[data-category="传统节日"] { --filter-border: #dde7d6; --filter-bg: #eef4e9; --filter-ink: #55724a; }
.festival-filters button[data-category="现代节日"] { --filter-border: #eedce6; --filter-bg: #faedf3; --filter-ink: #935573; }
.festival-filters button[data-category="纪念日"] { --filter-border: #e7def0; --filter-bg: #f3edf8; --filter-ink: #745687; }
.festival-filters button[aria-pressed="true"] {
  border-color: var(--filter-ink);
  background: color-mix(in srgb, var(--filter-ink) 12%, var(--filter-bg));
  font-weight: 600;
}
.festival-filters button:focus-visible { outline-offset: -2px; }

@media (max-width: 650px) {
  .info-column > .dash-card:first-child {
    background: linear-gradient(180deg, #fffefa, #f6f9fc);
    border-color: #e5eaf0;
  }
}
@media (max-width: 360px) {
  .calendar .cell .d { min-height: 12px; line-height: 12px; }
  .calendar .cell .lunar-day, .calendar .cell.has .h { font-size: 8px; line-height: 9px; }
}

#nextHoliday[data-category]:not([data-category=""]):not([data-category="法定节假日"]) .festival-categories {
  grid-column: 2 / 4;
  justify-self: center;
}

.calendar .cell:not(.empty) {
  align-items: center;
  justify-content: center;
  text-align: center;
}
.calendar .cell .h { margin-top: 0; }

@media (min-width: 851px) {
  .wrap { height: auto; min-height: 100svh; overflow: visible; }
  .workspace { height: auto; min-height: calc(100svh - 36px); flex: none; }
  .info-column, .schedule-column { height: auto; }
  .schedule-column > .calendar { min-height: 460px; }
  .schedule-column .calendar .grid { min-height: 350px; }
}

@media (max-width: 650px) {
  .info-column > .holiday-reminder { display: flex; flex-direction: column; }
  .info-column > .holiday-reminder .cheer-decoration {
    order: -1;
    width: 100%;
    margin: 0 0 14px;
  }
  .schedule-column .summary-top {
    background: linear-gradient(90deg, #fffefadc, #fffefab8), url('./seaside-background.jpg') center 65% / cover no-repeat;
  }
}

.salary-card { margin-top: 18px; padding: 22px 24px; }
.salary-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.salary-card-head h2 { margin: 0; color: var(--ink); font-size: 15px; font-weight: 700; }
.salary-card-head span { color: var(--accent-deep); font-size: 12px; font-weight: 600; }
.salary-head-actions { display: flex; align-items: center; gap: 12px; }
.salary-head-actions button, .salary-dialog-head button { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 7px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--accent-deep); }
.salary-head-actions .salary-year-trigger { width: auto; min-width: 72px; padding: 7px 10px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.salary-head-actions button .icon, .salary-dialog-head button .icon { width: 18px; height: 18px; }
.salary-flow { display: grid; grid-template-columns: .85fr 1.35fr .85fr; gap: 14px; }
.pay-step { min-width: 0; padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: color-mix(in srgb, var(--surface-2) 38%, var(--surface)); }
.pay-step h3 { margin: 0 0 13px; color: var(--ink); font-size: 13px; }
.salary-field { display: flex; flex-direction: column; gap: 6px; color: var(--ink-soft); font-size: 11px; }
.salary-field input { box-sizing: border-box; width: 100%; height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink); font-size: 16px; }
.pay-leave { min-height: 34px; margin: 13px 0; color: var(--ink-soft); font-size: 11px; line-height: 1.6; }
.pay-summary-row { display: flex; justify-content: space-between; gap: 10px; margin: 0 0 10px; color: var(--ink-soft); font-size: 11px; }
.pay-summary-row span { color: var(--ink); font-weight: 600; text-align: right; }
.pay-total { display: flex; align-items: baseline; gap: 4px; margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 11px; }
.pay-total strong { margin-left: auto; color: var(--accent-deep); font-size: 22px; font-weight: 700; }
.pay-total span { color: var(--ink-soft); }
.pay-net strong { color: #ad5b7c; }
.salary-note { margin: 14px 0 0; color: var(--ink-faint); font-size: 10px; line-height: 1.6; }
.salary-dialog { position: fixed; inset: 0; box-sizing: border-box; width: min(520px, calc(100vw - 24px)); max-height: calc(100svh - 24px); margin: auto; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-pop); overflow: hidden; }
.salary-dialog[open] { display: flex; flex-direction: column; }
.salary-dialog::backdrop { background: #3447614d; backdrop-filter: blur(4px); }
.salary-dialog-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; flex: none; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.salary-dialog-head h2 { margin: 0; font-size: 17px; }
.salary-dialog-head p { margin: 5px 0 0; color: var(--ink-soft); font-size: 11px; }
.salary-dialog-scroll { overflow-y: auto; min-height: 0; padding: 2px 0; }
.salary-dialog-scroll section { padding: 14px 0; border-bottom: 1px solid var(--line); }
.salary-dialog-scroll section:last-child { border-bottom: 0; }
.salary-dialog-scroll h3 { margin: 0 0 10px; font-size: 12px; }
.salary-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.salary-dialog-note { margin: -3px 0 12px; color: var(--ink-soft); font-size: 10px; line-height: 1.6; }
.salary-change-log { margin-top: 12px; color: var(--ink-soft); font-size: 11px; line-height: 1.7; overflow-wrap: anywhere; }
.salary-info-page { position: fixed; inset: 0; z-index: 1000; overflow-y: auto; background: var(--page-bg, #f3f7fb); color: var(--ink); }
.salary-info-page[hidden] { display: none; }
.salary-info-inner { box-sizing: border-box; width: min(720px, calc(100% - 32px)); min-height: calc(100svh - 48px); margin: 24px auto; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.salary-overview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 20px; }
.salary-overview-panel,.tax-settlement-panel { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: color-mix(in srgb, var(--surface-2) 35%, var(--surface)); }
.salary-overview-panel h2,.tax-settlement-panel h2 { margin: 0 0 12px; font-size: 15px; }
.salary-overview-panel .salary-info-help { margin: 8px 0 14px; }
.salary-overview-panel .salary-effective-month { max-width: none; margin: 0 0 14px; }
.salary-base-field { width: 100%; }
.salary-overview-panel .salary-change-log { max-height: 204px; overflow-y: auto; margin: 0; }
.salary-overview-panel .salary-change-row { display: grid; grid-template-columns: minmax(0,1fr) auto 26px; align-items: center; gap: 10px; padding: 10px 0; }
.salary-overview-panel .salary-change-row span { text-align: right; }
.salary-change-delete { width: 26px; height: 26px; padding: 0; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--ink-soft); font-size: 17px; line-height: 1; cursor: pointer; }
.salary-change-delete:hover,.salary-change-delete:focus-visible { color: #b74b66; border-color: #e6b7c4; }
.salary-year-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; }
.salary-year-head h2 { margin: 0; }
.salary-year-head .salary-info-help { margin: 6px 0 0; }
.salary-year-head button { flex: none; padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); color: var(--accent-deep); cursor: pointer; }
.salary-info-head { display: flex; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.salary-info-head h1 { margin: 0; font-size: 22px; }
.salary-info-head button { padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); color: var(--accent-deep); }
.salary-info-help { margin: 18px 0; color: var(--ink-soft); font-size: 12px; line-height: 1.7; }
.salary-effective-month { max-width: 220px; margin: 22px 0; }
.salary-info-inner h2 { margin: 34px 0 0; font-size: 16px; }
.salary-info-inner .salary-overview-panel h2,.salary-info-inner .tax-settlement-panel h2 { margin: 0 0 12px; font-size: 15px; }
.salary-info-inner .salary-year-head h2 { margin: 0; }
.salary-change-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.salary-change-row strong { color: var(--ink); }
.contrib-rates { display: grid; gap: 8px; margin-top: 14px; }
.contrib-rate-row { display: grid; grid-template-columns: minmax(90px, 1fr) minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 12px; margin: 10px 0; }
.contrib-rate-row strong { align-self: center; color: var(--ink); font-size: 13px; }
.contrib-summary { margin-top: 24px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); color: var(--accent-deep); font-size: 13px; line-height: 1.8; }
.salary-backpay-button { margin-top: 12px; padding: 10px 14px; border: 1px solid var(--accent-deep); border-radius: 10px; background: var(--accent-deep); color: white; font-size: 12px; cursor: pointer; }
.salary-backpay-button:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 650px) { .salary-info-inner { width: 100%; min-height: 100svh; margin: 0; border-radius: 0; padding: 20px; } .salary-change-row { flex-direction: column; gap: 2px; } }
@media (max-width: 650px) { .contrib-rate-row { grid-template-columns: 68px minmax(0, 1fr) minmax(0, 1fr); gap: 8px; } }
.salary-dialog-foot { flex: none; margin: 12px 0 0; color: var(--ink-soft); font-size: 10px; }
.salary-year-list { min-height: 0; overflow-y: auto; padding: 10px 0 0; }
.salary-year-row { display: grid; grid-template-columns: 50px minmax(0, 1fr) 120px 122px; align-items: center; gap: 12px; width: 100%; min-height: 62px; padding: 9px 12px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.salary-year-row:hover, .salary-year-row:focus-visible { background: color-mix(in srgb, var(--surface-2) 60%, var(--surface)); }
.salary-year-month { color: var(--accent-deep); font-size: 16px; font-weight: 700; white-space: nowrap; }
.salary-year-meta { color: var(--ink-soft); font-size: 12px; }
.salary-year-base { color: var(--accent-deep); font-size: 12px; white-space: nowrap; }
.salary-year-amount { color: var(--ink); font-size: 12px; line-height: 1.65; text-align: right; white-space: nowrap; }
.tax-settlement-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.tax-data-status { margin: 18px 0; padding: 9px 12px; border-radius: 9px; background: var(--surface-2); color: var(--accent-deep); font-size: 12px; }
.tax-settlement-panel .salary-info-help { margin: 14px 0 0; }
.tax-figures { display: grid; gap: 9px; }
.tax-figures div,.tax-settlement-result div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.tax-figures span,.tax-settlement-result span { color: var(--ink-soft); font-size: 12px; }
.tax-figures strong,.tax-settlement-result strong { color: var(--ink); font-size: 15px; font-variant-numeric: tabular-nums; }
.tax-input-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.tax-settlement-grid .tax-input-grid { grid-template-columns: 1fr; }
.tax-deductions { margin-top: 16px; }
.tax-settlement-result { display: grid; gap: 13px; margin-top: 16px; padding: 18px; border: 1px solid var(--line); border-radius: 13px; }
.tax-settlement-result .tax-final { padding-top: 12px; border-top: 1px solid var(--line); }
.tax-settlement-result .tax-final strong { color: var(--accent-deep); font-size: 22px; }
.tax-source { margin-bottom: 0; }
@media (max-width: 850px) { .salary-flow { grid-template-columns: 1fr; } }
@media (max-width: 650px) { .salary-card { margin-top: 14px; padding: 18px; } .salary-flow { gap: 10px; } .pay-step { padding: 13px; } .salary-dialog { padding: 18px; } .salary-overview,.tax-settlement-grid { grid-template-columns: 1fr; } .salary-year-row { grid-template-columns: 64px minmax(0,1fr); gap: 4px 12px; padding: 10px 4px; } .salary-year-meta { text-align: right; } .salary-year-base { grid-column: 1; grid-row: 2; font-size: 11px; } .salary-year-amount { grid-column: 2; grid-row: 2; font-size: 11px; } .tax-input-grid { grid-template-columns: 1fr; } }
