/* header — 紙感整合版
  - 從綠色 banner 改為 paper 背景 + 髮絲線分隔,跟內容一體感
  - 高度由 150px min-height 改為內容自適應,整體往上移
  - 文字顏色由白改 ink,user 名字與歡迎詞用 ink / ink-soft */
.header {
    background-color: var(--paper);
    color: var(--ink);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 12px 22px 14px;
    min-height: 0;
    height: auto;
    border-bottom: 1px solid var(--line);
    position: relative;
    box-sizing: border-box;
}

.header .back_btn {
    color: var(--ink-soft);
    text-decoration: none;
    margin: 0 4px 0 0;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 0.15s ease;
}

.header .back_btn:hover {
    color: var(--ink);
}

.header a:active,
a:focus {
    outline: none;
    background-color: transparent;
}

.header .header_logo {
    width: 56px;
    height: 56px;
    position: static;
    opacity: 0.14;
    flex-shrink: 0;
}

.header .user_photo {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    position: static;
    margin: 0;
    border: 1px solid var(--line-soft);
    flex-shrink: 0;
}

.header .text {
    color: var(--ink);
    margin: 0;
    flex: 1;
    min-width: 0;
    z-index: 1;
}

.header h1 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.2;
    letter-spacing: -0.005em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header p {
    margin: 2px 0 0 0;
    font-size: 11px;
    color: var(--ink-soft);
    line-height: 1.25;
}