/* 邮局沿用账户页版心、文字、表单和按钮；仅补充信件排版，不改全站主题。 */
.tp-page .tp-toolbar,.tp-page .tp-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.tp-page .tp-note{margin:13px 0 22px;color:var(--ac-muted);font-size:14px;line-height:1.7}
.tp-page .tp-note a{margin-left:10px;white-space:nowrap}
.tp-page .tp-tabs{margin-top:20px}
.tp-page .tp-save-state{color:var(--ac-muted);font-size:13px;min-height:20px}

/* 信箱是一列简洁列表；同一个标题入口同时适配鼠标、键盘和手机。 */
.tp-letter-list{border-top:1px solid var(--ac-line)}
.tp-letter-row{display:flex;align-items:center;gap:14px;padding:18px 0;border-bottom:1px solid var(--ac-line)}
.tp-letter-row-main{flex:1;min-width:0}
.tp-letter-row-main>a{display:inline-block;font-size:16px;font-weight:650;overflow-wrap:anywhere}
.tp-letter-row-main>a:hover{text-decoration:underline;text-underline-offset:3px}
.tp-letter-row-main>p{margin-top:5px!important;color:var(--ac-muted);font-size:12px;overflow-wrap:anywhere}
.tp-row-action{flex:none;display:inline-flex;align-items:center;min-height:44px;font-size:13px}

/* 写信和封存前核对使用同一正文；保留用户换行，长网址自动换行而非撑宽页面。 */
.tp-editor textarea{min-height:260px;line-height:1.85!important}
.tp-page .tp-consent{display:flex;gap:8px;align-items:flex-start;line-height:1.7;font-size:13px;color:var(--ac-muted)}
.tp-consent input{flex:none;margin-top:5px}
.tp-preview>h2{font-size:22px;outline:none}
.tp-paper{padding:22px 0;border-block:1px solid var(--ac-line);margin-bottom:20px}
.tp-paper h3{font-size:20px;margin-bottom:18px;overflow-wrap:anywhere}
.tp-letter-body{white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px;line-height:1.9}
.tp-preview .tp-actions{margin-top:20px}

/* 封存和开信使用普通面板，没有翻页动画，也不提前渲染信件正文。 */
.tp-envelope{padding:24px;border:1px solid var(--ac-line);border-radius:12px;margin-bottom:20px}
.tp-envelope-top{display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--ac-muted);font-size:12px;margin-bottom:18px}
.tp-envelope h2{font-size:24px;line-height:1.4;overflow-wrap:anywhere}
.tp-page .tp-envelope-message{margin-top:23px;font-size:14px;line-height:1.8;color:var(--ac-muted)}
.tp-page .tp-countdown{margin-top:14px;font-size:14px;font-variant-numeric:tabular-nums;color:var(--ac-green)}
.tp-opened-body{margin-top:25px;padding-top:22px;border-top:1px solid var(--ac-line)}
.tp-cancel{display:inline-flex;align-items:center;min-height:44px;padding:0;margin-top:15px;border:0;background:none;font-size:13px!important;color:var(--ac-muted)!important;text-decoration:underline;text-underline-offset:3px}
.tp-page>[data-tp-error]{margin-top:16px;font-size:14px;line-height:1.65;overflow-wrap:anywhere}

/* 窄屏只调整新增邮局元素；原网站布局、颜色和控件尺寸保持原样。 */
@media(max-width:500px){.tp-letter-row{flex-wrap:wrap;gap:6px 10px;padding:15px 0}.tp-letter-row-main{flex-basis:100%}.tp-row-action{margin-left:auto}.tp-envelope{padding:18px}.tp-envelope h2{font-size:22px}.tp-page .tp-tabs{gap:5px}.tp-page .tp-tabs button{padding-inline:9px;font-size:13px}.tp-editor textarea{min-height:240px}}
