/* 로그인·권한 안내 창. 색은 포털 토큰(var)을 그대로 쓴다 */
#authGate{position:fixed;inset:0;z-index:100;background:var(--desk,#F7F7F8);display:flex;align-items:center;justify-content:center;padding:16px}
#authGate .agBox{width:min(380px,100%);background:var(--paper,#fff);border:1px solid var(--line,#EAEAEC);border-radius:12px;padding:28px;display:flex;flex-direction:column;gap:12px;font-family:var(--font,sans-serif)}
#authGate .agEye{margin:0;font-size:12px;font-weight:600;color:var(--brand,#14703A)}
#authGate h1{margin:0;font-size:20px;font-weight:600;color:var(--ink-deep,#09090B)}
#authGate form{display:flex;flex-direction:column;gap:12px}
#authGate label{display:flex;flex-direction:column;gap:4px;font-size:12.5px;font-weight:500;color:var(--muted,#63636B)}
#authGate input{font:inherit;font-size:14px;min-height:44px;padding:0 12px;border:1px solid var(--line,#EAEAEC);border-radius:8px;background:var(--paper,#fff);color:var(--ink,#18181B)}
#authGate input:focus{outline:2px solid var(--ink-deep,#09090B);outline-offset:1px}
#authGate button{font:inherit;font-size:14px;font-weight:600;min-height:44px;border:0;border-radius:8px;background:var(--sel,#1D1D1F);color:var(--on-sel,#fff);cursor:pointer}
#authGate button:disabled{opacity:.6}
#authGate .agErr{margin:0;min-height:18px;font-size:12.5px;color:var(--danger,#D92D20)}
#authGate .agHelp{margin:0;font-size:12.5px;color:var(--muted,#63636B);line-height:1.6}
#authGate .agOr{display:flex;align-items:center;gap:8px;color:var(--muted,#63636B);font-size:12px}
#authGate .agOr::before,#authGate .agOr::after{content:"";flex:1;height:1px;background:var(--line,#EAEAEC)}
#authGate button.agAlt{background:var(--paper,#fff);color:var(--ink,#18181B);border:1px solid var(--line,#EAEAEC)}
#authGate button.agAlt:hover{background:var(--surface,#F4F4F5)}
/* 오른쪽 위 계정 버튼: 메뉴를 열지 않아도 비밀번호 바꾸는 곳이 보이게 */
#acctTop{position:fixed;z-index:7;top:calc(env(safe-area-inset-top,0px) + 10px);right:max(12px,env(safe-area-inset-right,0px));font:600 12px/1 var(--font,sans-serif);color:var(--ink,#18181B);background:var(--paper,#fff);border:1px solid var(--line,#EAEAEC);border-radius:999px;padding:9px 12px;text-decoration:none;box-shadow:0 1px 2px rgba(9,9,11,.06)}
#acctTop:hover{background:var(--surface,#F4F4F5)}
#acctTop:focus-visible{outline:2px solid var(--ink-deep,#09090B);outline-offset:2px}
@media (max-width:820px){#acctTop{top:auto;bottom:calc(env(safe-area-inset-bottom,0px) + 12px);padding:13px 14px}}
#acctTop.inbar{position:static;flex:none;margin-left:4px;box-shadow:none;padding:8px 12px}
@media (max-width:820px){#acctTop.inbar{position:fixed;z-index:7;right:max(12px,env(safe-area-inset-right,0px));bottom:calc(env(safe-area-inset-bottom,0px) + 12px);padding:13px 14px;box-shadow:0 1px 2px rgba(9,9,11,.06)}}
#syncNow{flex:none;margin-left:auto;font:600 12px/1 var(--font,sans-serif);color:var(--ink,#18181B);background:var(--paper,#fff);border:1px solid var(--line,#EAEAEC);border-radius:999px;padding:8px 12px;cursor:pointer;min-height:32px}
#syncNow:hover:not(:disabled){background:var(--surface,#F4F4F5)}
#syncNow:disabled{cursor:default;color:var(--muted,#71717A)}
#syncNow:focus-visible{outline:2px solid var(--ink-deep,#09090B);outline-offset:2px}
@media (max-width:820px){#syncNow{position:fixed;z-index:7;left:max(12px,env(safe-area-inset-left,0px));bottom:calc(env(safe-area-inset-bottom,0px) + 12px);margin:0;padding:13px 14px;min-height:44px;box-shadow:0 1px 2px rgba(9,9,11,.06)}}
/* 할 일 버튼·팝업(운영 포털, shim.js todoUI). 포털 토큰을 쓰고 없으면 기본값 */
#todoFab{position:fixed;z-index:9;right:max(20px,env(safe-area-inset-right,0px));bottom:calc(20px + env(safe-area-inset-bottom,0px));display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 14px;border:0;border-radius:12px;background:var(--ink-deep,#09090B);color:var(--paper,#fff);font:600 13px/1 var(--font,sans-serif);cursor:pointer;box-shadow:0 6px 18px rgba(9,9,11,.18)}
#todoFab svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#todoFab .tb:empty{display:none}
#todoFab .tb{min-width:20px;height:20px;padding:0 6px;border-radius:10px;background:var(--paper,#fff);color:var(--ink-deep,#09090B);font-size:11.5px;display:inline-flex;align-items:center;justify-content:center}
#todoFab .tb.late{background:var(--danger,#D92D20);color:#fff}
#todoFab:focus-visible{outline:2px solid var(--brand,#14703A);outline-offset:3px}
#todoPanel{position:fixed;z-index:10;right:max(20px,env(safe-area-inset-right,0px));bottom:calc(76px + env(safe-area-inset-bottom,0px));width:min(420px,calc(100vw - 32px));max-height:min(72vh,680px);overflow:auto;background:var(--paper,#fff);color:var(--ink,#18181B);border:1px solid var(--line,#EAEAEC);border-radius:14px;box-shadow:0 12px 32px rgba(9,9,11,.18);font:13px/1.5 var(--font,sans-serif);overscroll-behavior:contain}
#todoPanel .th{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;padding:14px 16px 6px;background:var(--paper,#fff)}
#todoPanel h2{margin:0;font-size:16px;font-weight:700;color:var(--ink-deep,#09090B)}
#todoPanel .tx-close{border:0;background:none;font-size:22px;line-height:1;width:44px;height:44px;margin:-10px -12px -10px 0;cursor:pointer;color:var(--muted,#63636B)}
#todoPanel .tv{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:0 16px 6px}
#todoPanel .tv select{font:inherit;min-height:32px;border:1px solid var(--line,#EAEAEC);border-radius:8px;padding:0 8px;background:var(--paper,#fff);color:inherit}
#todoPanel .tsum{margin:0;padding:0 16px 8px;color:var(--muted,#63636B)}
#todoPanel .tsum b{color:var(--ink-deep,#09090B)}
#todoPanel .tmsg{margin:0 16px 8px;padding:8px 10px;border-radius:8px;background:var(--surface,#F4F4F5);font-weight:600}
#todoPanel .tmeet{display:flex;gap:8px;overflow-x:auto;padding:0 16px 10px}
#todoPanel .tmeet a{flex:none;max-width:240px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:8px 10px;border-radius:8px;background:var(--surface,#F4F4F5);color:inherit;text-decoration:none;font-size:12.5px}
#todoPanel .tbody{padding:0 8px 12px}
#todoPanel .ts{margin:4px 0}
#todoPanel .ts>summary{cursor:pointer;list-style:none;padding:8px;font-weight:700;color:var(--ink-deep,#09090B)}
#todoPanel .ts>summary::-webkit-details-marker{display:none}
#todoPanel #ts-late>summary{color:var(--danger,#D92D20)}
#todoPanel .tcount{font-weight:600;color:var(--muted,#63636B);margin-left:4px}
#todoPanel ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
#todoPanel .ti{border:1px solid var(--line,#EAEAEC);border-radius:10px;padding:10px 12px}
#todoPanel .ti.on{border-color:var(--ink-deep,#09090B)}
#todoPanel .tt{display:flex;gap:8px;align-items:flex-start}
#todoPanel .ty{flex:none;font-size:11px;font-weight:700;padding:2px 6px;border-radius:6px;background:var(--surface,#F4F4F5);color:var(--ink,#18181B)}
#todoPanel .ty.M{background:color-mix(in srgb,var(--brand,#14703A) 14%,transparent);color:var(--brand,#14703A)}
#todoPanel .ty.gap{background:color-mix(in srgb,var(--danger,#D92D20) 10%,transparent);color:var(--danger,#D92D20)}
#todoPanel .tn{font-weight:600;color:var(--ink-deep,#09090B);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
#todoPanel .tm{margin-top:4px;font-size:12px;color:var(--muted,#63636B)}
#todoPanel .tl8{color:var(--danger,#D92D20)}
#todoPanel .tx{margin-top:4px;font-size:12.5px}
#todoPanel .tbs{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
#todoPanel .tbs button,#todoPanel .tbs a,#todoPanel .ta button,#todoPanel .tc button{font:inherit;font-size:12.5px;font-weight:600;min-height:36px;padding:0 12px;border:1px solid var(--line,#EAEAEC);border-radius:8px;background:var(--paper,#fff);color:var(--ink,#18181B);cursor:pointer;text-decoration:none;display:inline-flex;align-items:center}
#todoPanel .tc{display:inline-flex;flex-wrap:wrap;gap:6px;margin:0 6px 6px 0}
#todoPanel .tc button[aria-pressed="true"]{background:var(--ink-deep,#09090B);color:var(--paper,#fff);border-color:var(--ink-deep,#09090B)}
#todoPanel .tf{margin-top:8px;display:flex;flex-direction:column;gap:6px}
#todoPanel .tq{margin:4px 0 0;font-weight:700;font-size:12.5px}
#todoPanel .td-in,#todoPanel .td-date{font:inherit;min-height:36px;border:1px solid var(--line,#EAEAEC);border-radius:8px;padding:0 10px;background:var(--paper,#fff);color:inherit}
#todoPanel .ta{display:flex;justify-content:flex-end;gap:6px}
#todoPanel .ta .pri{background:var(--ink-deep,#09090B);color:var(--paper,#fff);border-color:var(--ink-deep,#09090B)}
#todoPanel .ta .pri:disabled{opacity:.4;cursor:default}
#todoPanel .tlink{border:0;background:none;padding:0 4px;color:var(--link,#116AD4);font:inherit;font-weight:600;cursor:pointer;min-height:auto}
#todoPanel .tempty{padding:16px;color:var(--muted,#63636B);margin:0}
#todoPanel button:focus-visible,#todoPanel a:focus-visible,#todoPanel input:focus-visible,#todoPanel select:focus-visible{outline:2px solid var(--brand,#14703A);outline-offset:2px}
@media (max-width:820px){
  #todoFab{right:max(12px,env(safe-area-inset-right,0px));bottom:calc(68px + env(safe-area-inset-bottom,0px))}
  #todoPanel{left:0;right:0;bottom:0;width:auto;max-height:86vh;border-radius:16px 16px 0 0;border-bottom:0}
  #todoPanel .tbs button,#todoPanel .tbs a,#todoPanel .ta button,#todoPanel .tc button,#todoPanel .td-in,#todoPanel .td-date{min-height:44px}
}
