:root{--line-brand:#003399;--line-night:#10243A;--line-secondary:#2459B8;--line-soft:#EAF1FF;--line-white:#FFFFFF;--line-text:#172536;--line-muted:#52647A;--lg-primary:var(--line-brand);--lg-primary-hover:#002A80;--lg-sidebar:var(--line-night)}
.shell .primary{background:var(--line-brand);color:var(--line-white)}
.shell .primary:hover{background:#002A80}
.shell :is(button,input,select,textarea,a):focus-visible{outline:3px solid var(--line-secondary);outline-offset:3px}
.shell .secondary{background:var(--line-soft);color:var(--line-night)}
.shell .panel,.shell .card{border-color:#dce5f0}
.shell .field :is(input,select,textarea){border-color:#7b8fa7}
.shell .platform-icon{background:var(--line-soft);color:var(--line-brand)}
.shell .platform-eyebrow{color:var(--line-brand)}
.shell .create-submit{background:var(--line-brand);color:var(--line-white)}
.shell .header-actions{align-items:center;gap:10px;flex-wrap:nowrap}
.shell .header-action-icon{display:block;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.shell #notificationButton{position:relative;display:grid;place-items:center;width:44px;height:44px;min-width:44px;padding:10px;border:1px solid #dce5f0;background:var(--line-white);color:var(--line-brand);border-radius:12px}
.shell #notificationCount{position:absolute;top:-5px;right:-5px;min-width:19px;padding:2px 5px;font-size:11px;line-height:15px;border:2px solid #fff;background:var(--line-brand);color:#fff;border-radius:20px}
.notification-panel{width:min(370px,calc(100vw - 28px));padding:8px;max-height:min(460px,70dvh);border:1px solid #dce5f0;box-shadow:0 16px 45px #10243a24}
.notification-item{display:block;width:100%;text-align:left;color:var(--line-text);background:white;font-weight:400;border-radius:8px;white-space:normal;overflow-wrap:anywhere}
.notification-item strong{display:block;font-size:14px;margin-bottom:4px}
.notification-item.unread{background:var(--line-soft);border-left:3px solid var(--line-brand)}
.account-wrap{position:relative;min-width:0}
.shell #accountButton{display:flex;align-items:center;gap:9px;min-height:44px;background:white;border:1px solid #dce5f0;color:var(--line-night);padding:5px 10px 5px 5px;border-radius:24px;max-width:220px}
.account-avatar{position:relative;display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:50%;background:var(--line-soft);color:var(--line-brand);font-weight:700;overflow:hidden}
.account-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.account-name{max-width:145px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px}
.account-panel{position:absolute;right:0;top:52px;z-index:40;width:min(280px,calc(100vw - 28px));padding:12px;background:white;border:1px solid #dce5f0;border-radius:14px;box-shadow:0 16px 45px #10243a24}
.account-panel p{margin:2px 8px 10px;font-size:13px;color:var(--line-muted);overflow-wrap:anywhere}
.account-panel button{display:block;width:100%;text-align:left;min-height:44px;background:white;color:var(--line-night);border-radius:8px}
.account-panel button:hover{background:var(--line-soft)}
.account-panel #logout{color:#a12d28;border-top:1px solid #e1e8f1;margin-top:4px}
.profile-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:18px;align-items:start}
.profile-card{background:#fff;border:1px solid #dce5f0;border-radius:16px;padding:24px;min-width:0}
.profile-card h2{font-size:20px;margin:0 0 12px;color:var(--line-night)}
.profile-card p{font-size:13px;line-height:1.6;color:var(--line-muted)}
.profile-note{padding:12px 14px;background:var(--line-soft);border-radius:10px;font-size:13px;line-height:1.6;color:var(--line-night);margin:0 0 18px}
.profile-status{font-size:13px;line-height:1.6;overflow-wrap:anywhere;min-height:1.5em;margin:12px 0}
.profile-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.profile-actions button{min-height:44px}
.profile-avatar-preview{width:96px;height:96px;object-fit:cover;border-radius:50%;border:1px solid #dce5f0;background:var(--line-soft)}
.profile-signature-preview{display:block;width:100%;max-height:150px;object-fit:contain;border:1px solid #dce5f0;border-radius:10px;background:#fff;margin:12px 0}
.profile-pad{display:block;width:100%;height:auto;aspect-ratio:9/4;border:1px solid #7b8fa7;border-radius:10px;touch-action:none;background:white}
.profile-label{display:block;font-size:13px;font-weight:700;color:var(--line-night);margin:16px 0 8px}
.profile-card input{max-width:100%;font-size:16px}
.profile-card input[readonly]{background:#f3f6fa;color:#52647a}
.profile-upload{max-width:100%;font-size:13px}
.profile-mode{display:flex;gap:16px;flex-wrap:wrap;margin:14px 0;font-size:13px}
.profile-mode label{display:flex;gap:7px;align-items:center;min-height:44px}
.profile-pad-hint{margin:6px 0 12px}
.profile-card fieldset{border:0;padding:0;margin:0;min-width:0}
.profile-card legend{font-weight:700;color:var(--line-night);padding:0;margin-bottom:10px}
@media(max-width:850px){.profile-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:650px){.shell .app-header .header-actions{gap:8px}.shell .app-header .account-wrap{position:static}.shell .app-header #accountButton{width:44px;height:44px;min-width:44px;padding:4px;justify-content:center;background:#ffffff19;color:white;border:0}.account-name{display:none}.shell .app-header #notificationButton{background:#ffffff19;color:white;border:0}.shell .app-header .account-panel{top:58px;right:0;width:min(280px,100%)}.shell .app-header .account-panel button{width:100%;height:auto;background:white;color:var(--line-night);justify-content:flex-start;display:block;padding:12px}.shell .app-header .account-panel #logout{color:#a12d28}.shell .app-header .notification-panel{top:58px;right:0;width:min(370px,100%)}.profile-card{padding:18px}}
.signature-notice{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 18px;margin:0 0 18px;border:1px solid #B5C9ED;border-radius:12px;background:var(--line-soft);color:var(--line-night);overflow-wrap:anywhere}
.signature-notice h2{font-size:17px;margin:0 0 6px}.signature-notice p{font-size:14px;line-height:1.5;margin:0}.signature-notice-actions{display:flex;gap:8px;flex-shrink:0;flex-wrap:wrap}
@media(max-width:650px){.signature-notice{align-items:stretch;flex-direction:column}.signature-notice-actions button{min-height:44px}}
@media print{.account-panel,.profile-grid,.signature-notice{display:none!important}}
