/* 濱野対応: 赤とチャコールを軸にした共通の配色。業務上の警告色は維持する。 */
body.creative-workspace{
 --brand:#9d3443;--brand-hover:#7d2835;--brand-soft:#f8edef;
 --blue:var(--brand);--blue-dark:var(--brand-hover);--ink:#292a30;--muted:#68676e;
 --bg:#f6f5f3;--line:#e2dfdf;--nav:#27272d;--nav-deep:#202026;
 font-size:14px;color:var(--ink);background:var(--bg)
}
body.creative-workspace main{background:var(--bg)}
body.creative-workspace .header{border-bottom-color:#e2dfdf;background:#fff}
body.creative-workspace .header .menu-button{background:#34333a}
body.creative-workspace .header .menu-button:hover{background:var(--brand)}
body.creative-workspace .sidebar{border-right:0}
body.creative-workspace .sidebar .nav-item{border-bottom-color:#35343b;color:#e9e7e9;min-height:50px}
body.creative-workspace .sidebar .nav-item.active{background:#443038;color:#fff;box-shadow:inset 4px 0 #d08b96}
body.creative-workspace .sidebar .nav-item.active>.ui-icon{color:#efc2ca}
body.creative-workspace .sidebar .nav-item:hover{background:#38373e}
body.creative-workspace .page-heading{border-bottom:1px solid #dedadb;padding-bottom:20px;margin-bottom:24px;gap:16px}
body.creative-workspace .page-heading h1{font-size:25px;line-height:1.45;font-weight:700;color:#29272d}
body.creative-workspace .card{border:1px solid #e2dfe0;border-radius:12px;background:#fff;box-shadow:0 2px 7px #27212a05}
body.creative-workspace .card-heading{background:#faf9f8;border-bottom-color:#e8e4e5;border-radius:12px 12px 0 0;padding:16px 20px;gap:12px;flex-wrap:wrap}
body.creative-workspace .workspace-panel{padding:24px}
body.creative-workspace .primary,body.creative-workspace button.primary,body.creative-workspace .page-heading>a.primary{background:var(--brand);border-color:var(--brand);border-radius:7px;color:#fff;font-weight:600;box-shadow:none}
body.creative-workspace .primary:hover,body.creative-workspace button.primary:hover{background:var(--brand-hover);border-color:var(--brand-hover)}
body.creative-workspace .outline-button,body.creative-workspace .button{border-radius:7px;border-color:#d9d3d5;color:#40363b;background:#fff}
body.creative-workspace .outline-button:hover{background:#f7f3f4;border-color:#b99aa1}
body.creative-workspace .workspace-form input,body.creative-workspace .workspace-form select,body.creative-workspace .workspace-form textarea{border-radius:6px;border-color:#d6d1d4;color:#302d33}
body.creative-workspace input[type=checkbox],body.creative-workspace input[type=radio]{accent-color:var(--brand)}
body.creative-workspace :is(a,button,input,select,textarea,summary,[tabindex]):focus-visible{outline:2px solid var(--brand);outline-offset:3px}
body.creative-workspace .creative-section-tabs [aria-current=page],body.creative-workspace .monthly-section-tabs [aria-current=page]{background:var(--brand-soft);color:#7d2835;border-color:var(--brand);font-weight:700}
body.creative-workspace .monthly-section-tabs{border-bottom-color:#dfc5cb}
body.creative-workspace table th{background:#f0edef;color:#4a4249;border-color:#e2dcdf;font-weight:600}
body.creative-workspace table td{border-bottom-color:#e8e3e5}
body.creative-workspace table tbody tr:nth-child(even){background:#fcfafb}
body.creative-workspace .circular-search{background:#faf8f8;border-color:#e5dfe1;border-radius:10px}
body.creative-workspace .circular-search summary,body.creative-workspace .circular-search-grid label,body.creative-workspace .circular-search-states legend{color:#62515a}
body.creative-workspace .workspace-body,body.creative-workspace .forum-body{font-size:15px;line-height:1.85;color:#353039;overflow-wrap:anywhere}
body.creative-workspace .source-date-grid [aria-current]{background:var(--brand);color:#fff}
body.creative-workspace .source-date-grid button:hover,body.creative-workspace .source-date-grid button:focus{background:var(--brand-soft);color:#7d2835;outline-color:var(--brand)}
body.creative-workspace [data-participant-dialog]{border-color:#d8cdd1;border-radius:16px;color:#332c33;box-shadow:0 24px 80px #21151c40;padding:24px}
body.creative-workspace [data-participant-dialog]::backdrop{background:#24212780}
body.creative-workspace [data-participant-dialog]>h2{font-size:22px;color:#30282e}
body.creative-workspace [data-participant-dialog] .participant-picker-guide{color:#6c6068}
body.creative-workspace [data-participant-dialog] .participant-departments,body.creative-workspace [data-participant-dialog] .participant-list,body.creative-workspace [data-participant-dialog] .participant-selected{border-color:#e4dce0;border-radius:10px}
body.creative-workspace [data-participant-dialog] .participant-selected{background:#faf2f4}
body.creative-workspace [data-participant-dialog] [data-participant-department]{background:#f7f5f6;color:#4b4148;border-color:#ded5da;border-radius:6px}
body.creative-workspace [data-participant-dialog] [data-participant-department][aria-pressed=true]{background:var(--brand);color:#fff;border-color:var(--brand)}
body.creative-workspace [data-participant-dialog] h3 span{color:var(--brand)}
body.creative-workspace [data-participant-dialog] .participant-list th{background:#f3eff1;color:#5a4b53}
body.creative-workspace [data-participant-dialog] .participant-list tr:has(input:checked){background:#f9ecef}
body.creative-workspace [data-participant-dialog] .participant-picker-actions [data-participant-accept]{background:var(--brand);color:#fff;border:1px solid var(--brand);border-radius:7px;font-weight:600}
body.creative-workspace [data-participant-dialog] .participant-picker-actions{border-top-color:#e5dbe0}
@media(max-width:640px){
 body.creative-workspace .workspace-panel{padding:16px}
 body.creative-workspace .page-heading h1{font-size:22px}
 body.creative-workspace .card-heading{padding:14px 16px}
 body.creative-workspace [data-participant-dialog]{padding:12px;border-radius:12px}
 body.creative-workspace [data-participant-dialog]>h2{font-size:19px}
}
@media(prefers-reduced-motion:no-preference){
 body.creative-workspace :is(.primary,.outline-button,.nav-item){transition:background-color .15s,border-color .15s,color .15s}
}

body.creative-workspace .circular-search .workspace-form{max-width:none}

body.creative-workspace .page-heading>a.outline-button{min-height:40px;display:inline-flex;align-items:center;padding:8px 14px;font-size:14px}

/* 認証方式を変えず、ログイン画面も会社の配色へ統一。 */
body.portal-signin,body.login-page{--blue:#9d3443;--blue-dark:#7d2835;background:radial-gradient(ellipse at 20% 0,#f0e6e8,transparent 60%),#f5f3f2;color:#302b31}
.portal-signin .signin-brand{background:radial-gradient(circle at 100% 0,#66313e,transparent 70%),linear-gradient(145deg,#302b32,#211e24)}
.portal-signin .brand-art i{border-color:#e3adb72e}.portal-signin .brand-art i:nth-child(2){border-color:#dc97a440}.portal-signin .brand-art i:nth-child(3){background:linear-gradient(130deg,#a84a5c30,#35252c20);border-color:#d18a9a60}.portal-signin .brand-art i:nth-child(4){background:#c76b7d18}
.portal-signin .signin-brand>small{color:#b49ca6}.portal-signin .signin-welcome{color:#9d3443}.portal-signin .signin-shell h1{color:#302b31}
.portal-signin .signin-fields label{color:#65535d;font-size:14px}.portal-signin .signin-fields input{background:#faf8f9;border-color:#ddd3d8;color:#302b31;font-size:16px}.portal-signin .signin-help{font-size:12px;color:#74646d}.portal-signin .signin-caption{color:#8b7e85}
.portal-signin .signin-action button,.login-page button.primary{background:#9d3443;border-color:#9d3443;box-shadow:none}.portal-signin .signin-action button:hover,.login-page button.primary:hover{background:#7d2835}
.portal-signin :is(input,button):focus-visible,.login-page :is(input,button):focus-visible{outline:2px solid #9d3443;outline-offset:3px}

body.creative-workspace [data-participant-open]{background:#fff;border:1px solid #c9a7b1;border-radius:7px;color:#7d2835;font-weight:600}
body.creative-workspace [data-participant-open]:hover{background:#f8edef}
body.creative-workspace [data-participant-summary]:not([hidden]){border-left:3px solid #caa1ad;background:#faf6f7;padding:10px 12px;border-radius:0 6px 6px 0;max-height:120px;overflow:auto;font-size:14px;color:#65525c}
body.creative-workspace [data-participant-dialog] button:not(.primary):not([data-participant-pane]):not([data-participant-department]){border:1px solid #d8cdd2;border-radius:6px;background:#fff;color:#55434d}
body.creative-workspace [data-participant-dialog] button:not(.primary):hover{border-color:#b68a99;background:#faf2f5}

body.creative-workspace .circular-source-form>button[value=publish],body.creative-workspace #question-save{background:var(--brand);border-color:var(--brand);color:#fff}
body.creative-workspace .question-source-fields>label>.subtle,body.creative-workspace .forum-reply-dialog .helptext{color:#75636d}
body.creative-workspace .circular-compose-field>label,body.creative-workspace .circular-field-label{color:#6b5963}
body.creative-workspace .forum-source-form #id_title,body.creative-workspace .circular-source-form input[name=title]{width:100%;max-width:700px;height:44px;min-height:44px;font-size:16px;padding:8px 12px;border-radius:6px}
body.creative-workspace .forum-source-form #id_body,body.creative-workspace .circular-source-form textarea[name=body]{width:100%;max-width:900px;min-height:240px;font-size:15px;line-height:1.75;padding:12px;border-radius:6px}
body.creative-workspace .forum-source-form .attendance-toolbar .primary,body.creative-workspace .forum-source-form .attendance-toolbar .outline-button,body.creative-workspace .circular-registration-actions .primary,body.creative-workspace .circular-registration-actions .outline-button{min-height:44px;height:auto;padding:10px 16px;font-size:14px}
body.creative-workspace .monthly-month-popup button[aria-current]{border-color:var(--brand);color:#7d2835;background:var(--brand-soft)}
body.creative-workspace .monthly-month-popup button:hover{background:var(--brand-soft)}
@media(max-width:640px){body.creative-workspace .forum-source-form #id_body,body.creative-workspace .circular-source-form textarea[name=body]{font-size:16px}}

body.creative-workspace .pill.neutral{background:#f4edef;color:#6e4657;border-color:#e3ced7}body.creative-workspace .subtle{color:#766872}body.creative-workspace .page-heading h1{overflow-wrap:anywhere;min-width:0}

/* 設定・トップも同じ配色へ。出退勤など意味を持つ状態色は個別に維持。 */
body.creative-workspace .source-settings-heading>a{color:var(--brand)}
body.creative-workspace .source-settings-heading nav{background:#faf7f8;border-color:#e4dce0;border-radius:8px;margin-inline:0}
body.creative-workspace .source-settings-section{border-color:#e2dfe0;border-radius:12px;overflow:hidden}
body.creative-workspace .source-setting-card{border-color:#e2dadd;border-radius:8px;color:#62565e}
body.creative-workspace a.source-setting-card:hover,body.creative-workspace a.source-setting-card:focus-visible{background:#faf0f3;border-color:#b8798b;outline-color:var(--brand)}
body.creative-workspace .source-setting-title{color:#793747}
body.creative-workspace .source-setting-title .ui-icon{color:#a56b7b}
body.creative-workspace .source-setting-pending{background:#f7f5f6}
body.creative-workspace .source-setting-pending .source-setting-title,body.creative-workspace .source-setting-pending .ui-icon{color:#777078}
body.creative-workspace .source-settings-additional{border-color:#e2dadd;border-radius:10px}
body.creative-workspace .personal-notice-filters{background:#faf7f8}
body.creative-workspace .personal-notice-filters button[aria-pressed=true]{background:var(--brand);border-color:var(--brand);color:#fff}
body.creative-workspace .personal-notice-count,body.creative-workspace .sidebar .menu-notice-count{background:var(--brand);color:#fff}
body.creative-workspace .attendance-external{color:var(--brand);border-color:#d8c9ce;border-radius:6px}
body.creative-workspace .system-card{border-radius:8px}
body.creative-workspace .system-card:hover{background:#faf2f4}
body.creative-workspace.portal-top .top-grid{gap:18px}
body.creative-workspace.portal-top .top-grid:not(.single-panel) .clock-card{border-right:1px solid var(--line)}
body.creative-workspace.portal-top .system-card>.ui-icon{color:#a56b7b}
body.creative-workspace.portal-top .attendance-external.primary{color:#fff;background:var(--brand);border-color:var(--brand)}
body.creative-workspace .home-link-tabs button{min-height:44px;border-radius:6px}
body.creative-workspace .home-link-tabs button[aria-pressed=true]{background:var(--brand);border-color:var(--brand);color:#fff}
body.creative-workspace .external-list a strong{color:#793747}
body.creative-workspace .metric>.ui-icon,body.creative-workspace .rank-label{color:#985366}
body.creative-workspace .metric{border-top-color:#b97484}
body.creative-workspace .metric h3,body.creative-workspace .metric strong,body.creative-workspace .profile-card dd{color:#39313b}
body.creative-workspace .metric small,body.creative-workspace .section-heading>span{font-size:12px;color:#766872}
body.creative-workspace .profile-avatar{background:#eee8eb;color:#9a8290}
body.creative-workspace.portal-top .punch-toolbar .punch{min-height:44px;font-size:14px;border-radius:6px}

/* 申請一覧も共通の会社色と読みやすい操作サイズに揃える。 */
body.creative-workspace .workflow-list-tab{border-color:var(--brand)}
body.creative-workspace .workflow-list-tab span{background:var(--brand);border-radius:8px 8px 0 0;font-size:14px}
body.creative-workspace .workflow-source-filter,body.creative-workspace .workflow-source-bulk{background:#faf8f9;border-color:#e2dadd;font-size:14px}
body.creative-workspace .workflow-segments span{min-height:44px;display:flex;align-items:center;box-sizing:border-box;background:#fff;border-color:#d8cdd2;font-size:14px}
body.creative-workspace .workflow-segments input:checked+span{background:var(--brand);border-color:var(--brand);color:#fff}
body.creative-workspace .workflow-segments input:focus-visible+span{outline-color:var(--brand)}
body.creative-workspace .workflow-list-card .workspace-table th{background:#f3edef;color:#704451}
body.creative-workspace .workflow-list-card tbody tr:nth-child(even){background:#fcfafb}
body.creative-workspace .workflow-list-card .workspace-table th,body.creative-workspace .workflow-list-card .workspace-table td{font-size:14px;padding:12px}

body.creative-workspace .schedule-workspace .schedule-modes a{min-height:44px;height:auto;border-radius:7px}
body.creative-workspace .schedule-workspace .schedule-modes a[aria-current]{background:var(--brand);color:#fff;border-radius:7px}
body.creative-workspace .schedule-workspace table thead th{background:#62565f;color:#fff}
body.creative-workspace .schedule-workspace table thead th a{color:inherit}
body.creative-workspace .schedule-workspace table thead th.holiday{background:#9a5262}
body.creative-workspace .schedule-workspace table thead th.saturday{background:#58687b}
body.creative-workspace .schedule-workspace .week-event{color:#713f50}
body.creative-workspace .schedule-heading>a.primary,body.creative-workspace .schedule-editor>button.primary{background:var(--brand);min-height:44px;height:auto;padding:8px 16px;line-height:1.5;border-radius:7px}
body.creative-workspace .schedule-workspace .workspace-back{color:var(--brand)}
body.creative-workspace .source-month-grid button[aria-current]{background:var(--brand);color:#fff}
body.creative-workspace .source-month-popup button:hover{background:var(--brand-soft);color:var(--brand-hover)}
body.creative-workspace .equipment-calendar a{background:#f8f0f3;color:#68404e;border-color:#b37686}
body.creative-workspace .equipment-calendar .equipment-today{background:#faf4f6}
body.creative-workspace .equipment-calendar a.equipment-add{background:#fff;color:#713f50;min-height:36px;display:inline-flex;align-items:center;border-color:#d8c7ce}
body.creative-workspace table th a.equipment-month-link,body.creative-workspace .equipment-guide summary{color:var(--brand)}
body.creative-workspace .schedule-editor [data-participant-open],body.creative-workspace .schedule-editor [data-equipment-open],body.creative-workspace .schedule-editor [data-availability-link]{background:#fff;color:var(--brand);border:1px solid #c9a7b1;border-radius:7px;min-height:44px;height:auto}
body.creative-workspace [data-schedule-equipment-dialog]{border-color:#d8cdd1;border-radius:12px}
body.creative-workspace [data-schedule-equipment-dialog] [data-equipment-staged]{background:var(--brand-soft)}
body.creative-workspace .attendance-source-tabs{border-bottom-color:#dfc5cb}
body.creative-workspace .attendance-source-tabs a{min-height:44px;display:flex;align-items:center}
body.creative-workspace .attendance-source-tabs a.active{background:var(--brand-soft);color:var(--brand-hover);border-top-color:var(--brand)}
body.creative-workspace .timecard-sheet .punch-data-link{background:var(--brand);border-color:var(--brand);color:#fff}
body.creative-workspace .timecard-sheet .attendance-heading-actions>a,body.creative-workspace .timecard-related>summary{min-height:44px;height:auto;border-radius:6px}
body.creative-workspace .timecard-identity{background:#f6f0f2;border-color:#e0d1d7;color:#53434e}
body.creative-workspace .timecard-sheet>.attendance-note,body.creative-workspace .timecard-targets{background:#faf7f8;color:#63525d}
body.creative-workspace .timecard-sheet .attendance-table th{background:#f0e8ec;color:#633b4a;border-color:#ded2d8}
body.creative-workspace .timecard-totals .attendance-stats span{background:#f3edef;color:#694453}
body.creative-workspace .timecard-sheet .decision-target-filter a.active{background:var(--brand);border-color:var(--brand)}
body.creative-workspace .timecard-sheet .decision-employee.selected,body.creative-workspace .timecard-related>nav a{color:var(--brand)}
body.creative-workspace .timecard-related>nav a:hover{background:var(--brand-soft)}

body.creative-workspace .presence-mobile-sort{display:none}
body.creative-workspace .presence-table td .outline-button{min-height:44px;display:inline-flex;align-items:center;padding:8px 12px;font-size:14px;margin-top:6px}
@media(max-width:640px){
 body.creative-workspace .presence-mobile-sort{display:block;margin:12px 0}
 body.creative-workspace .presence-mobile-sort summary{min-height:44px;align-content:center;cursor:pointer;color:var(--brand)}
 body.creative-workspace .presence-mobile-sort nav{display:flex;flex-wrap:wrap;gap:8px;padding:8px 0}
 body.creative-workspace .presence-mobile-sort a{min-height:44px;display:inline-flex;align-items:center}
 body.creative-workspace .presence-table{min-width:0;display:block}
 body.creative-workspace .presence-table thead{display:none}
 body.creative-workspace .presence-table tbody{display:grid;gap:16px}
 body.creative-workspace .presence-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border:1px solid #e2dadd;border-radius:10px;overflow:hidden;background:#fff}
 body.creative-workspace .presence-table td{display:block;min-width:0;padding:10px 12px;font-size:14px;overflow-wrap:anywhere}
 body.creative-workspace .presence-table td[data-label]::before{content:attr(data-label);display:block;font-size:12px;color:#766872;margin-bottom:4px}
 body.creative-workspace .presence-table td[data-label="氏名"]{order:-1;background:#f8f1f3;font-size:17px}
 body.creative-workspace .presence-table td[data-label="所在"]{order:-1}
 body.creative-workspace .presence-table td:is([data-label="氏名"],[data-label="所在"],[data-label="今日のスケジュール"],[data-label="明日のスケジュール"],[colspan]){grid-column:1/-1}
 body.creative-workspace .presence-table td:last-child{border-bottom:0}
 body.creative-workspace .presence-event{max-width:none}
 body.creative-workspace .presence-filters input,body.creative-workspace .presence-filters select{min-height:44px;font-size:16px}
}

/* User administration: readable actions and compact-screen cards. */
.creative-workspace .user-directory .directory-filter{display:flex;flex-wrap:wrap;gap:14px;align-items:end}
.creative-workspace .user-directory .directory-filter>div{min-width:150px;flex:1}
.creative-workspace .user-directory label{display:block;margin-bottom:6px}
.creative-workspace .user-directory input,.creative-workspace .user-directory select{min-height:44px;font-size:16px;max-width:100%;width:100%;box-sizing:border-box}
.creative-workspace .user-directory .outline-button,.creative-workspace .user-directory .primary{min-height:44px;font-size:14px;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box}
.creative-workspace .directory-table td{font-size:14px;vertical-align:top}
.creative-workspace .directory-table td:last-child{min-width:160px}
.creative-workspace .directory-table td:last-child a{margin:0 4px 6px 0}
.creative-workspace .directory-table small{display:block;margin-top:4px}
@media(max-width:640px){
 .creative-workspace .user-directory .table-wrap{overflow:visible;padding:0 14px}
 .creative-workspace .directory-table,.creative-workspace .directory-table tbody{display:block;width:100%;min-width:0}
 .creative-workspace .directory-table thead{display:none}
 .creative-workspace .directory-table tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;padding:16px;margin-bottom:14px;border:1px solid #ded9d9;border-radius:12px;background:#fff}
 .creative-workspace .directory-table td{display:block;min-width:0;padding:0;border:0;white-space:normal;overflow-wrap:anywhere}
 .creative-workspace .directory-table td:before{content:attr(data-label);display:block;color:#66616a;font-size:12px;margin-bottom:4px}
 .creative-workspace .directory-table td:nth-child(2){grid-column:1/-1;grid-row:1;font-size:18px;font-weight:650}
 .creative-workspace .directory-table td:last-child{grid-column:1/-1;min-width:0}
 .creative-workspace .directory-table td[colspan]{grid-column:1/-1}
 .creative-workspace .directory-table td[colspan]:before{display:none}
}
