html,body{
//	height:100%;
	width:100%;
}
a,button{
	-webkit-tap-highlight-color:transparent;
	-webkit-appearance: none;
	color:inherit;
}
:root{
//	height:100dvh;
}

	.login-screen{
	  position: fixed;
	  inset: 0;
	  z-index: 999999999;
	  display: none;
	  align-items: center;
	  justify-content: center;
	  padding: 24px;
	  background: #eef5ff;
	}
	.login-card img{
	  	pointer-events: none;
		width:80%;
		-webkit-user-drag:none;
		user-select:none;
		-webkit-touch-callout:none;
	}
	.login-container p{
		font-size:40px;
		font-weight:bold;
	}
	.hide{
		display:none !important;
	}

	body.not-working #seatArea {
	  pointer-events: none;
	  opacity: 0.5;
	  filter: grayscale(0.2);
	}

img { -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none; }

	
#app-version{
	font-size:12px;
	color:#222222;
}

body[ data-locked="1" ].not-working #viewport {
#  filter: blur(6px) grayscale(0.15);
#  transition: filter 200ms ease;
#  backdrop-filter: blur(6px);



 touch-action: none;
  overscroll-behavior: none;
  -webkit-user-select: none;
  user-select: none;

}

body[ data-locked="1" ].not-working::before {
  content: "";
  position: fixed;
  inset: 0;
#  background: rgba(0,0,0,0.35);
#  z-index: 9998;
}

body[ data-locked="1" ].not-working #viewport{
	filter:brightness(0.3) !important;
}

body[ data-locked="0" ] #workActionButtons{
	display:none;
}

.btnWorkOn{
	position:relative;
	display:inline-block;
	z-index:9999999;
}




.seat-locked-msg{
gap:5px;
  text-align:center;
  font-size:16px;
  margin-bottom:16px;
  color:white;
  opacity:0;
  transform:translateY(0);
  transition:opacity 0.4s ease;
  pointer-events:none;
	position:absolute;
	width:320px;
	right:10px;
	bottom:30px;
	text-align:right;
}
.seat-locked-msg span{
	width:85px;
	text-align:center;
	display:inline-block;
}

.seat-locked-msg.show{
  opacity:1;
  animation: floatSeatLocked 2.4s ease-in-out infinite;
}

@keyframes floatSeatLocked{
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}





	body.not-working .seat[data-type="TOILET"] input[type="checkbox"]{
		pointer-events:none !important;
		opacity:0.6;
		filter: grayscale(0,2) !important;
	}

/*
	body.not-working label{
		pointer-events:none;
		opacity:0.3;
	}
*/



	.login-card{
	  width: min(420px, 100%);
	  padding: 18px 18px 16px;
	 # box-shadow: 0 18px 60px rgba(0,0,0,0.35);
	  backdrop-filter: blur(6px);
	}

	.login-title{
	  font-size: 18px;
	  font-weight: 900;
	  margin-bottom: 6px;
	}

	.login-sub{
	  font-size: 13px;
	  opacity: 0.85;
	  margin-bottom: 14px;
	  line-height: 1.4;
	}

	.login-container{
	  display: grid;
	  gap: 10px;
	  justify-items: center;
	justify-content:center;
	  margin-bottom: 10px;
	}

	.login-msg{
	  font-size: 12px;
	  color: #0f766e;
	  min-height: 16px;
	}



	body.app-loading .appShell{
//	  opacity: 0;
opacity:1;
		background-color:#eef5ff;
	}

	body.app-ready .appShell{
	  opacity: 1;
	  transition: opacity 400ms ease;
	}

.loading {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.85);
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms ease;
  z-index: 9999999999999 !important;
}

.loading.show {
  opacity: 1;
  pointer-events: auto;
}

.loading.hidden {
  display: none;
}

.spinner {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 4px solid rgba(0,0,0,0.15);
  border-top-color: rgba(0,0,0,0.65);
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}



	body.logged-out #loginScreen{
	  display: flex;
	}
	body.logged-out #appShell{
	  display: none;
	}

	body:not(.logged-out) #loginScreen{
	  display: none;
	}
	body:not(.logged-out) #appShell{
	  display: block;
	}

	#g_login_button{
	#	padding-right:20px;
	}
	.rp-section{
	  border-bottom: 1px solid #ddd;
	}
	body.logged-out .appShell{
	#  display: none;
	#  transition: transform .5s ease;
		filter:blur(3px);
		pointer-events:none;
	}

	body.logged-out .loginScreen{
	  display: flex;
	}


	.rp-header{
	  padding: 2px 12px;
	  font-weight: 700;
	  cursor: pointer;
	  user-select: none;
	  display: flex;
	  justify-content: space-between;
	  align-items: center;
	}

	.rp-header::after{
	 # content: "▾";
	content:"-";
		width:20px;
		text-align:center;
	  transition: transform .2s ease;
	}

	.rp-section.closed .rp-header::after{
	content:"+";
		width:20px;
		text-align:center;
	 # transform: rotate(-90deg);
	}

	.rp-body{
	  overflow: hidden;
	  transition: max-height .25s ease, padding .2s ease;
	//  max-height: 600px;
	  padding: 10px 12px;
	padding-top:0px;
	}

	.rp-section.closed .rp-body{
	  max-height: 0;
	  padding-top: 0;
	  padding-bottom: 0;
	}

		.seat-search:not([data-seat-id=null]) img{
			cursor:pointer;
		}
		#toilet-wrapper .seat-search:not([data-seat-id=null]) {
			cursor:pointer;
		}

		.seat-rotator.seat-flash{
		  animation: seatFlash 1.2s ease-in-out 0s 3;
		}

		@keyframes seatFlash{
  0%, 100% {
    filter:
      drop-shadow(2px 1px 5px rgba(0,0,0,0.35))
      drop-shadow(0 0 0 rgba(197,34,94,0));
  }
  50% {
    filter:
      drop-shadow(2px 1px 5px rgba(0,0,0,0.35))
      drop-shadow(0 0 20px rgba(197,34,94,0.95));
  }
		}
	#viewport{
	  overflow: auto;

	  scrollbar-width: none;

	  -ms-overflow-style: none;
	}

	#viewport::-webkit-scrollbar{
	  width: 0px;
	  height: 0px;
	}

		.icon-wrapper{
			position:relative;
			margin:0 auto;
			display:inline-flex;
			justify-content:center;
			align-items:center;
		}
		.propArea .headset{
			display:none;
			width:80px;
			height:80px;
			left:-10px;
			top:-10px;
			position:absolute;
		}
		.seat-search .headset{
			display:none;
			width:50px;
			height:50px;
			position:absolute;
			left:-7px;
				top:-6px;
		}
.headset.on{
  display:block;

  animation: softBreath 2.5s linear infinite;
  -webkit-animation: softBreath 2.5s linear infinite;

  will-change: opacity, -webkit-filter, filter;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

@keyframes softBreath{
  0%{
    opacity: .50;
  	transform: scale(1.0);
  }
  50%{
    opacity: 1;
  	transform: scale(1.1);
  }
  100%{
    opacity: .50;
  	transform: scale(1.0);
  }
}

/* iOS(Safari) */
@-webkit-keyframes softBreath{
  0%{
    opacity: .50;
  }
  50%{
    opacity: 1;
  }
  100%{
    opacity: .50;
  }
}


		.footprint{
			font-size:24px;
			display:none;
			background-color:#ccff66;
			border-style:solid;
			border-width:2px;
			border-color:green;
			border-radius:20px;
			position:absolute;
			color:olive;
			margin-top:-80px;
			margin-left:-30px;
		}
		.breaktime{
			font-size:24px;
			display:none;
			background-color:yellow;
			border-style:solid;
			border-width:2px;
			border-color:orange;
			border-radius:20px;
			position:absolute;
			color:red;
			margin-top:-80px;
			margin-left:30px;
		}
		.seat-search .footprint{
			font-size:20px;
			margin-left:-5px;
			margin-top:-5px;
		}
		.footprint.on{
			display:block;
		}

		.seat-search .breaktime{
			font-size:20px;
			margin-left:20px;
			margin-top:-5px;
		}
		.breaktime.on{
			display:block;
		}
		.subtitle-area{
			display:flex;
			align-items:center;
			flex-direction:row;
		}
		.subtitle{
			background-color:#ececec;
			border-radius:20px;
			padding:2px 10px;
			color:white;
		}
		section ul{
			display:grid;
			grid-template-columns: repeat(5,1fr);
		}
		ul.nogrid{
			display:inline-flex;
		}
		section span{
			font-size:10px;
		}

		body{
			-webkit-tap-highlight-color: transparent;
		}
		a,buttun,input,textarea{
			-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
		}
		.area-label{
			display:flex;
			gap:5px;
			align-items:center;
			font-size:12px;
			color:#999999;
		}
		#loginStatus{
			//width:100px;
			margin-right:8px;
//			max-width:50px;
			white-space:break-spaces;
			text-align:right;

		}
		#loginArea{
			position:fixed;
			right:0px;
//			width:320px;
			display:flex;
			padding:0px;
			margin:0px;
			justify-content:flex-end;
			text-align:right;
			flex-direction:row;
			align-items:center;
		}
		.conference ul{
			padding-inline-start:0px;
			list-style-type:none;
			margin-block-start:0px;
			margin-block-end:0px;
			text-align:center;
		}
		#toilet-wrapper ul{
			padding-inline-start:0px;
	#		display:flex;
	#		alin-items:flex-start;
	#		flex-wrap:wrap;
			display:grid;
			grid-template-columns:repeat(6,1fr);
		}
		#toilet-wrapper section{
			display:flex;
		}
		.sub-toilet{
			display:flex;
			justify-content:stretch;
		}


		.conference li{
			position:relative;
		//	display:inline-block;
		//	display:block;
	display:flex;
	flex-direction:column;	
	gap:5px;	
			text-align:center;
			margin:0 auto;
			padding:5px 0px;
			font-size:12px;
			color:#666;
		}

		#toilet-wrapper .conference li{
			padding:5px 5px;
			#min-width:60px;
			margin:0 !important;
			border-right:1px solid #000;
			border-bottom:1px solid #000;

			background-color:#e9e9ff;

			color:#0000ff;
			display:flex;
			flex-direction:column;
		}

		#toilet-wrapper .conference li.used{
			background-color:#ffe9e9 !important;
			color:#ff0000;
		}

		#toilet-wrapper .conference li:nth-child(6n+1){
			border-left:1px solid #000;
		}
		#toilet-wrapper .conference li:nth-child(-n+6){
			border-top:1px solid #000;
		}


		.toilet-icon{
			width:40px;
			height:40px;
			background:#0000ff;
			-webkit-mask: url(/images/toilet.svg) no-repeat center / contain;
			mask: url( /images/toilet.svg ) no-repeat center /contain;
		}
		.toilet-icon.used{
			background:#ff0000;
		}

		#toilet-wrapper .conference{
			justify-content:start;
		}

		/* トイレ同名グループのラベル行 */
		#toilet-wrapper .toilet-group-label{
			width:100%;
			padding:4px 8px;
			font-size:0.75em;
			font-weight:bold;
			color:#555;
			background:#f0f0f8;
			border-top:1px solid #ccc;
			border-bottom:none;
			margin-top:4px;
			display:block !important;
			flex:none !important;
		}
		#toilet-wrapper .toilet-group-label:first-child{
			margin-top:0;
			border-top:none;
		}

		.conference li img{
			display:block;
			margin:0 auto;
		}

	    :root{ --toolbar-h: 64px;
			--drawer-w: 360px;
			--drawer-left:0px;
		 }
	    html, body { height: 100%; margin: 0; overflow: hidden; font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans JP", sans-serif; }
		.user-icon{
			width:32px;
			height:32px;
			border-radius:32px;
			border-style:solid;
			border-color:white;
			border-width:2px;
			opacity:0;
		}
	.propArea .user-icon{
		width:50px;
		height:50px;
		border-width:4px;
	}
	.propArea .label2{
		font-size:18px;
	}

	    .toolbar{

	      position: fixed; left: 0; right: 0; top: 0; height: var(--toolbar-h);
	      display:flex; align-items:center; 
	//	gap:10px;
		padding: 0px 12px;
		box-sizing: border-box;
	#      background: rgba(255,255,255,0.92); backdrop-filter: blur(6px);
		background-color : #eef5ff;
	      border-bottom: 1px solid #ddd; z-index: 9999999;
	#      flex-wrap: wrap;
	    }

	    .row{ display:flex; align-items:center; gap:8px; flex-wrap: wrap; }
	    .toolbar .spacer{ flex: 1; min-width: 0; }
	    .hint{
	      font-size: 12px; color: #555;
	      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
	      max-width: 52vw;
	    }
		#toilet-wrapper img{
			width:40px;
			#filter: invert(8%) sepia(100%) saturate(7299%) hue-rotate(248deg) brightness(98%) contrast(144%);
			filter: invert(9%) sepia(100%) saturate(6428%) hue-rotate(245deg) brightness(100%) contrast(141%);
		}
		#toilet-wrapper img.used{
			filter: invert(12%) sepia(81%) saturate(7498%) hue-rotate(10deg) brightness(102%) contrast(120%) !important;
		}

	    .mini{ font-size: 12px; color: #666; }
		#logoutBtn{
		//	background-color:transparent;
		}
	    .status{ font-size: 12px; color: #333;
			padding:0px;
			margin:0px;
			#padding: 4px 8px;
			 #border: 1px solid #ddd;
			#border-radius: 999px;
			#background: rgba(255,255,255,0.8);
			background-color:transparent;
		 }

	

	    button,select, input[type="file"], input[type="text"]{
	      padding: 8px 10px;
		border: 0px;
		#border: 1px solid #ccc;
		background: #fff;
		# border-radius: 10px;
	      cursor: pointer; font-size: 14px;
		align-items:center;
	    } 
		button:not(.work-btn) {
		display:flex;
		}
	    input[type="text"]{ cursor: text; width: min(420px, 40vw); }

@media(hover:hover){
	    button:not(.work-btn):not(.drawer-close):hover{ background:#f6f6f6; }
}

	    select{ cursor: pointer; }
	    label.checkbox{
	      display: inline-flex; align-items:center; gap:6px;
	      padding: 6px 10px; border: 1px solid #ddd; border-radius: 999px;
	      background: rgba(255,255,255,0.75);
	      user-select: none;
	      font-size: 12px;
	      color: #333;
	    }
	    label.checkbox input{ margin: 0; }

	    #viewport{
	      position: fixed;
	#left: 0; right: 0;
		 top: var(--toolbar-h);
		 bottom: 0;
		left:var(--drawer-left);
	      overflow: auto;
//	      background: #f4f4f6;
	      cursor: grab ;
		transition:left 180ms ease;
		touch-action:none;

	    }
	


	#viewport{
	  position: fixed;
	  top: var(--toolbar-h);
	  bottom: 0;
	  left: var(--drawer-left, 0px);
	  right: var(--right-w, 0px);
	  overflow: auto;
	  background: #f4f4f6;
background-image: radial-gradient(circle at center, #707070 1px, transparent 1px);
background-size: 50px 50px;
background-color: #cccccc;
		user-select:none;
		-webkit-user-select:none;
		bottom:var(--bottom-panel-h);
	}
	#viewport img{
		-webkit-user-drag:none;
		user-drag:none;
		user-select:none;
	}

	#zoomLayer{
	  position: relative;
	}

	#world{
	  position: absolute;
	  left: 0;
	  top: 0;
	  transform-origin: 0 0;
		background-color:#ffffff;
	border-style:solid;
//	border-width:50px;
	border-color:white;
	  opacity: 1;
	  will-change: opacity;
	}




	    #viewport.dragging{ cursor: grabbing; }

	    #zoomLayer{
	      position: relative;
	      transform-origin: 0 0;
	      width: 1px; height: 1px;
	    }

	    #bgImage{
		background-color:white;
	      position: absolute; left: 0; top: 0;
	      display: block;
	      user-select: none;
		-webkit-user-drag: none;
		user-drag:none;
	      pointer-events: none;
		opacity:1;
		transition: opacity 80ms linear;
	    }
	    #seatsLayer{
	      position: absolute; left: 0; top: 0;
	      width: 1px; height: 1px;
	    }

	    .seat{
	      position: absolute;
	      width: 120px;
	      height: 70px;
	      user-select: none;
	      cursor: grab;
	      touch-action: none;

	    }
	    .seat:active{ cursor: grabbing; }

	    .seat-rotator{
	      position: absolute;
	      inset: 0;
	      border-radius: 0px;
	      box-shadow: 0 2px 10px rgba(0,0,0,0.12);
	      transform-origin: center center;
	      box-sizing: border-box;
	      display:flex; align-items:center; justify-content:center;
	      font-weight: 700;
	      letter-spacing: 0.3px;
		z-index:9999;
		  filter: drop-shadow(2px 1px 5px rgba(0,0,0,0.35));
	    }

		
	    .seat[data-type="A"]{ width: 147px; height: 67px; }
	    .seat[data-type="A"] .seat-rotator{ border: 1px solid #2b5; background-image: url( /images/desk2.png ); background-size: 147px 67px ; }

	    .seat[data-type="B"]{ width: 82px; height: 171px; }
	    .seat[data-type="B"] .seat-rotator{ border: 1px solid #259; background-image: url( /images/desk1.png ) ; background-size: 82px 171px ; }

	    .seat[data-type="CONFERENCE"]{ width: 150px; height: 60px; }
	    .seat[data-type="CONFERENCE"] .seat-rotator{ background: rgba(234,242,255,0.8);
		border-style:dashed !important; border-color:#222222 ; border-width:1px;
		} 
	    .seat[data-type="CONFERENCE"] .seat-rotator[data-has-image]{ border-width:0px !important;}
		


	    .seat[data-type="TOILET"]{width:190px; height:100px; text-align:center; }
	    .seat[data-type="TOILET"] .seat-rotator{ background: rgba(250,250,165,0.8);
		border-style:dashed !important; border-color:#222222 ; border-width:1px;
		}



		.propArea{
			position: absolute;
	      left: 0; top: 0;
	      width: 100%; height: 100%;
	      display:flex; align-items:center; justify-content:center;
	      pointer-events: none;
	      text-align: center;
		flex-direction:column;
	z-index:999999;
		}
		.seat[data-type="TOILET"] .propArea.on{
			background-color:rgba(255,68,68,0.3);
		}

	.seat[data-type="TOILET"] .label{
		padding: 10px 0px 5px 0px !important;
	}

	    .seat[data-type="TOILET"] .propArea{pointer-events:auto !important; height:100% !important;}

	    .label2{
	      #position: absolute;
	      left: 0; top: 0;
	#      width: 100%;
	      pointer-events: none;
	      font-size: 12px;
		margin-top:4px;
	      padding: 4px 4px;
	      text-align: center;
	      line-height: 1.2;
	      white-space: nowrap;
	#      overflow: hidden;
	      text-overflow: ellipsis;
	      box-sizing: border-box;
		background-color:rgba(0,0,0,0.5);
		color:white;
	    }
	
		.seat[data-vacancy="true"] .label2{
			display:none !important;
		}
		.seat .label2.hold-blink{
			display:block !important;
		}
	    .label{
	      left: 0; top: 0;
	      width: 100%;
	      pointer-events: none;
	      font-size: 12px;
	      padding: 0 8px;
	      text-align: center;
	      line-height: 1.2;
	      white-space: nowrap;
	      overflow: hidden;
	      text-overflow: ellipsis;
	      box-sizing: border-box;
	    }

	.material-symbols-sharp {
		color:#666666;
	  font-variation-settings:
	  'FILL' 0,
	  'wght' 400,
	  'GRAD' 0,
	  'opsz' 20
	}
	

	.rotate-handle .material-symbols-outlined {

		position:absolute;
		width:11px;
		height:11px;
		top:-5px;
		right:8px;
		z-index:99999;
		color:#666666;
	  font-variation-settings:
	  'FILL' 0,
	  'wght' 400,
	  'GRAD' 0,
	  'opsz' 14
	}
		.handle_inner{
		}

	    .rotate-handle{
		z-index:9999;
	      position: absolute;
	      width: 14px; height: 14px;
	      right: -7px; top: -7px;
	      border-radius: 999px;
	      background: #fff;
	      border: 2px solid #fff;
	      box-shadow: 0 1px 6px rgba(0,0,0,0.2);
	      cursor: crosshair;
	      touch-action: none;
	    }

	    #contextMenu{
	      position: fixed;
	      z-index: 9999;
	      min-width: 140px;
	      background:#fff;
	      border:1px solid rgba(0,0,0,0.18);
	      box-shadow:0 10px 30px rgba(0,0,0,0.18);
	      padding:6px;
	      display:none;
	    }
	    #contextMenu button{
	      width:100%;
	      border:0;
	      text-align:left;
	      padding:10px 10px;
	      background:transparent;
	    }
@madia(hover:hover){
	    #contextMenu button:hover{ background:#f2f2f2; }
}

	    #output{
	      position: fixed;
	      right: 12px; bottom: 12px;
	      width: min(620px, 92vw);
	      height: 260px;
	      z-index: 11;
	      display: none;
	      border-radius: 12px;
	      border: 1px solid #ddd;
	      padding: 10px;
	      box-sizing: border-box;
	      background: rgba(255,255,255,0.96);
	      box-shadow: 0 10px 30px rgba(0,0,0,0.15);
	      font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Noto Sans Mono", monospace;
	      font-size: 12px;
	      white-space: pre;
	      overflow: auto;
	    }
		.admin{
			display:none;
		}
	.hamburger{
	  padding: 8px 12px;
//	  background: #fff;
	  font-size: 18px;
	  line-height: 1;
	}
	button.hamburger{
		background-color:transparent !important;
	}
	button.hamburger:hover{
		background-color:transparent !important;
	}

	.drawer-overlay{
	  position: fixed;
	  inset: 0;
	  background: rgba(0,0,0,0.25);
	  z-index: 40;
	}

	.drawer{
	  position: fixed;
	  top: var(--toolbar-h);
	  left: 0;
	  height: calc(100dvh - var(--toolbar-h));
	 // width: min(420px, 92vw);
		width:var(--drawer-w);
	  background: rgba(255,255,255,0.98);
	  border-right: 1px solid #ddd;
	  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
	  z-index: 5600;

	  transform: translateX(-105%);
	  transition: transform 160ms ease;
	  overflow: auto;

		width:0;
		padding:0;
		border-right:none;
		box-shadow: none;
		transition:width 180ms ease;

	}

	.drawer.open{
		width:var(--drawer-w);
		border-right: 1px solid #ddd;
		box-shadow: 0 10px 30px rgba( 0,0,0,0.18);
	  transform: translateX(0);

	}
	.drawer:not(.open) .drawer-body,
	.drawer:not(.open) .drawer-header{
		opacity:0;
		pointer-events:none;
	}
	.drawer.open .drawer-body,
	.drawer.open .drawer-header{
		opacity:1;
		pointer-events:auto;
		transition:opacity 120ms wase;
	}



	.drawer-header{
	  position: sticky;
	  top: 0;
	  display: flex;
	  align-items: center;
	  justify-content: space-between;
	  gap: 10px;
	  padding: 12px;
	  border-bottom: 1px solid #e5e5e5;
	  background: rgba(255,255,255,0.98);
		z-index:99999;
	}

	.drawer-title{
	  font-weight: 800;
	}

	.drawer-close{
	  padding: 0px 10px;
	  border: 1px solid #ccc;
	  border-radius: 12px;
	  background: #fff;
	  font-size: 14px;
		border-style:none;
		background-color:transparent;
	}
	.drawer-close:hover{
		color:#555555;
		background-color:transparent !important;
	}

	.drawer-body{
	  padding: 12px;
	  display: grid;
	  gap: 10px;
	}

	.sep{
	  border: 0;
	  border-top: 1px solid #e6e6e6;
	  margin: 4px 0;
	}
		.work-btn{
			overflow:hidden;
			background-color:rgba(255,255,255,0.9);
			border: 1px solid #cccccc;
			display:inline-flex;
			 box-shadow:inset 3px 3px 7px #f8f8f8,
	#             inset -3px -3px 5px #f8f8f8;
			user-select:none;
			-webkit-transform:translateZ(0);
-webkit-mask-image: -webkit-radial-gradient(white, black);
  transform: translateZ(0)
		}
		.work-btn.on{

			color:#666666;
			 box-shadow:inset 3px 3px 3px #8f8f8f,
		     inset -3px -3px 5px #eef5ff;
		}


		.work-btn:active
		{
			transform:translateZ(0);
		  #background-color:rgba( 255 , 255 , 255 , 0.9 );
		background-color: rgba( 238 , 245 ,255 , 0.9 );
		 // background: linear-gradient(204deg,rgba(174, 238, 186, 0.84) 0%, rgba(148, 169, 233, 1) 100%);
//		  filter: drop-shadow(0 1px jpx rgba(0,0,0,0.35));
		     inset -3px -3px 2px #eef5ff;
			color: black !imoprtant;
		}
	@media ( hover :hover  ) and (pointer : fine ){
		.work-btn:hover
		{
			transform:translateZ(0);
		background-color: rgba( 238 , 245 ,255 , 0.9 );
		  #background-color:rgba( 255 , 255 , 255 , 0.9 );
		  //background: linear-gradient(204deg,rgba(174, 238, 186, 0.84) 0%, rgba(148, 169, 233, 1) 100%);
//		  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.35));
		     inset -3px -3px 2px #eef5ff;
			color: black !imoprtant;
		}
	}
	@media (max-width: 899px){
	#seatDecisionMsg{
		margin:0 auto !important;
		left: 10px !important;
		right:10px;
		text-align:center;
		bottom: calc(50px + max(var(--bottom-panel-h, 300px), 300px)) !important;
	}
	  .drawer{
		display:none;
	    transform: translateX(-105%);
	    transition: transform 160ms ease;
	  }

	  .drawer.open{
	    transform: translateX(0);
	  }
		#menuBtn{
			display:none;
		}
		.save-toast{
			right:0 !important;
		}
		#logoutBtn .material-symbols-sharp{
			font-size:22px !important;
		}
		.menu-logo{
			height:40px !important;
		}
		:root{
			--toolbar-h:40px !important;
		}

		.work-btn img{
			width:80px !important;
		}
		.work-btn {

		     inset -3px -3px 5px #f8f8f8;
			user-select: none;
			font-size:12px;
		}
		.work-btn span{
			font-size:12px !important;
		}


	  #viewport{
	    left: 0;
		right:0;
	  }
		.lock-toggle{
			display:none !important;
		}
		.lock-toggle.toilet{
			display:flex !important;
		}
		.menu-logo {
			left:0px;
		}

	.conn-indicator{
		right:16px !important;
	}
		#workActionButtons .work-btn{
			border-radius:0px !important;
			padding:15px 10px !important;
			display:flex;
			justify-content:center;
			border-left-style:none !important;
			border-right-style:none !important;
		}
		.work-btn span{
		}
		#workActionButtons{
			direction:rtl;
		}
		#workModeButtons{
			direction:ltr;
		}
		#workActionButtons{
			border: 1px solid #cccccc;
		}

		#workModeButtons,
		#workActionButtons{
			position:fixed !important; // 必要か!?
			background-color:rgba(255,255,255,0.9);
			width:100%;
			display:grid ;
			gap:0px !important;
			grid-template-columns:repeat(5,1fr);
			justify-items:stretch;
			#right: 16px !important;
			left:0px;
			bottom: var(--bottom-panel-h, 300px) !important;
			z-index:99999;
		}
		body.not-working #workActionButtons{
			background-color:transparent;
			border-color:transparent;
		}
		

	}

	@media (min-width: 900px){
	/*
	  .drawer{
	    width: var(--drawer-w);
	    transform: none !important;
	    transition: none !important;
	  }
	*/

	  .drawer-close{ display: none; }
	  .drawer-overlay{ display: none !important; }

	  .hamburger{ display: none; }

	#  #viewport{
	#    left: var(--drawer-w);
	#  }
		.menu-logo {
			left:0px;
		}
	}

	.drawer-hint{
	  max-width: none;
	  white-space: normal;
	}
	.menu-logo {
	 // position: absolute;   /* or fixed */
	position:relative;
	  top: 0px;
		height:64px;
		display:flex;
		flex-direction:column;
		justify-content:center;
		align-items:flex-start;
	//	margin-left:10px;

	}

	.menu-logo img {
	  height: 50px;
	  width: auto;
	}

	:root{
	  --right-w: 360px;
		--bottom-panel-h: 0px;
	}

	.right-panel{
	  position: fixed;
	  top: var(--toolbar-h);
	  right: 0;
	  height: calc(100dvh - var(--toolbar-h));
	  width: var(--right-w);
	  background: rgba(255,255,255,0.98);
	  border-left: 1px solid #ddd;
	  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
	  z-index: 4000;
	  display: flex;
	  flex-direction: column;
	  overflow: hidden;
	}

	.right-header{
	  position: sticky;
	  top: 0;
	  display:flex;
	  align-items:center;
	  justify-content: space-between;
	  gap: 10px;
	  padding: 12px;
	  border-bottom: 1px solid #e5e5e5;
	  background: rgba(255,255,255,0.98);
	}

	.right-title{ font-weight: 800; }
	.right-actions{ display:flex; gap: 8px; }

	.right-body{
	  padding: 12px;
	  display: grid;
	  gap: 10px;
	  overflow: auto;
	}

	.rp-section{ display:grid; gap: 6px; }
	.rp-label{ font-size: 12px; color: #666; }
	.rp-value{ padding: 8px 10px; border: 1px solid #ddd; border-radius: 10px; background: rgba(255,255,255,0.8); font-size: 13px; }

	.rp-textarea{
	  width: 100%;
	  height: 260px;
	  resize: vertical;
	  border: 1px solid #ddd;
	  border-radius: 10px;
	  padding: 10px;
	  box-sizing: border-box;
	  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Noto Sans Mono", monospace;
	  font-size: 12px;
	}

	@media (min-width: 900px){
	  #viewport{
	    right: var(--right-w);
	  }
		#loginIcon{
			width:48px;
			height:48px;
		}
	}

	@media (max-width: 899px){
		:root{
			--right-w:0px;
			--bottom-panel-h:300px;
		}
		.menu-logo img{
			height:30px;
		}
	  .right-panel{
	    width: 100%;
	    height: var(--bottom-panel-h);
		left:0;
		right:0;
	    top: auto;
	    bottom: 0;
	    border-left: none;
	    border-top: 1px solid #ddd;
	  }
	#  #viewport{
	#    bottom: 220px;
	#}
	}

	.seat[data-type="TOILET"] .label.editing{
		padding:0px 20px !important;
	}
	.label.editing{
		padding:0px 20px;
	  outline: 2px solid rgba(0,128,255,1);
		font-size:14px;
	  background: rgba(255,255,255,1);
	line-height:32px;
		vertical-align:middle;
		display:inline-flex;
		flex: 0 0 auto;
		width:max-content;
		color:black;
		align-items:center;
		white-space:pre;
	      text-overflow: unset;
		overflow:visible;
	}

	.lock-toggle{
	width:160px;
	  display: flex;
	  align-items: center;
	  gap: 5px;
	  user-select: none;
	white-space:nowrap;
		
	  cursor: pointer;
		position:fixed !important;
		right:200px !important;
	}
		.toolbar .lock-toggle{
			width:120px;
			position:unset !important;
		}

	.lock-label .text{
	white-space:nowrap;
	}
	.lock-toggle.toilet{
	width:160px;
		position:unset !important;
		left:0px ;
		margin:0px auto;
		right:none !important;
		height:100%;
	}

	.lock-toggle input{
	  position: absolute;
	  opacity: 0;
	  width: 1px; height: 1px;
	}

	.lock-toggle .track{
	  width: 46px;
	  height: 26px;
	  border-radius: 999px;
	  background: #e5e7eb;      /* OFF */
	  border: 1px solid #cbd5e1;
	  position: relative;
	  transition: background 160ms ease, border-color 160ms ease;
	  flex: 0 0 auto;
	}
	.lock-toggle.toilet .track{
	  background: #cafeca;
	  border-color: #44ef44;
	}

	.lock-toggle .thumb{
	  width: 22px;
	  height: 22px;
	  border-radius: 999px;
	  background: #fff;
	  border: 1px solid rgba(0,0,0,0.12);
	  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
	  position: absolute;
	  top: 50%;
	  left: 2px;
	  transform: translateY(-50%);
	  transition: left 160ms ease;
	}


	.lock-toggle .lock-label{
	  display: inline-flex;
	  align-items: center;
	  gap: 3px;
	  padding: 6px 0px;
	  border-radius: 999px;
	#  border: 1px solid #ddd;
	#  background: rgba(255,255,255,0.8);
	  font-size: 12px;
	  font-weight: 600;
	}
	.lock-toggle.toilet .lock-label{
		font-size:24px;
	}



	.lock-toggle input:focus-visible + .track{
	  outline: 2px solid rgba(37, 99, 235, 0.6);
	  outline-offset: 3px;
	}

	.lock-toggle input:checked + .track{
	  background: #cafeca;
	  border-color: #44ef44;
	}

	.lock-toggle.toilet input:checked + .track{
	  background: #fecaca;
	  border-color: #ef4444;
	}

	.lock-toggle input:checked + .track .thumb{
	  left: 22px;
	}
//		body[ data-locked="1" ] .seat { cursor:pointer !important; }
		body[ data-locked="1" ] .seat { cursor:pointer ; }
		body[ data-locked="1" ] .seat-rotator { border-style: none !important; box-shadow : none !important; }
		body[ data-locked="1" ] .rotate-handle { cursor:none ; opacity:0 ; pointer-events:none ; display:none ;}
		body[ data-locked="1" ] .propArea .label { display:none !important; }
		body[ data-locked="0" ] .propArea .label2 { display:none !important; }
		body[ data-locked="0" ] .propArea .user-icon { display:none !important; }

		body[ data-locked="0" ] .propArea .breaktime { display:none !important; }
		body[ data-locked="0" ] .propArea .footprint { display:none !important; }
		body[ data-locked="0" ] .propArea .headset { display:none !important; }


	body[data-locked="0" ].drawer-switching #viewport{
		left:var( --drawer-left , 0px ) !important;
	}


	.conn-indicator{
	  position: fixed;
	top: calc(var(--toolbar-h, 76px) + 20px);
	  right: calc(var(--right-w, 0px) + 30px);
	  z-index: 999;

	  display: inline-flex;
	  align-items: center;
	  gap: 8px;

	  padding: 8px 12px;
	  border-radius: 999px;
	  border: 1px solid rgba(34,197,94,0.45);
#	  background: rgba(0,0,0,0.35);
	  color: #86efac;
	  font-size: 12px;
	  font-weight: 700;
	  letter-spacing: 0.2px;
	  user-select: none;
	  pointer-events: none;
	  backdrop-filter: blur(6px);
	}

	.conn-indicator .dot{
	  width: 10px;
	  height: 10px;
	  border-radius: 999px;
	  background: #22c55e;
	  box-shadow: 0 0 10px rgba(34,197,94,0.9);
	}

	.conn-indicator.blinking{
	  animation: connBlink 0.9s ease-in-out infinite;
	}

	@keyframes connBlink{
	  0%, 100% { opacity: 1; }
	  50%      { opacity: 0.25; }
	}

	.conn-indicator.connected{
	  opacity: 1;
	  animation: none;
	}
	.save-toast{
	  position: fixed;
	  top: var(--toolbar-h, 76px);
	  left: var(--drawer-left, 0px);
	  right: var(--right-w, 0px);
	  z-index: 3000;

	  padding: 10px 14px;
	  background: rgba(34, 197, 94, 0.72);
	  color: #fff;
	  font-weight: 800;
	  font-size: 13px;
	  letter-spacing: 0.2px;

	  display: none;
	  align-items: center;
	  justify-content: center;

	  backdrop-filter: blur(6px);
	  border-bottom: 1px solid rgba(255,255,255,0.25);
	}

	.save-toast.show{
	  display: flex;
	  animation: toastIn 140ms ease-out;
	}

	@keyframes toastIn{
	  from{ transform: translateY(-6px); opacity: 0; }
	  to{   transform: translateY(0);   opacity: 1; }
	}

	#workModeButtons,
	#workActionButtons{
	  position: fixed;
	  right: calc(var(--right-w, 0px) + 32px);
	  bottom: 40px;
	  z-index: 3000;

	  flex-direction: row;
	  gap: 12px;
	}

	.work-btn:before{
	filter: blur(15px);
	}
	.work-btn{
	#	background-color:rgba( 151 , 151 , 151 , 0.2 );
#	background-color:rgba(255,255,255,0.9);
	color:#222222;
	#background: linear-gradient(204deg,rgba(188, 238, 174, 0.84) 0%, rgba(148, 187, 233, 1) 100%);
#	  border: 1px solid #cccccc;
	  padding: 5px 20px;
	  cursor: pointer;
		border-radius:20px;
			-webkit-transform:translateZ(0);
		isolation:isolate;
	}

body[data-drawer-open="1"] #workModeButtons,
body[data-drawer-open="1"] #workActionButtons
{
	display:none;
}



	.work-btn img{
	  width: 120px;
	  height: auto;
	  display: block;
		transform:translateZ(0);
	  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.25));
	  transition: transform .12s ease, box-shadow .12s ease;
	}

	/*
	.work-btn:hover
	{
		transform:translateZ(0);
		color:white !important;
	  #background-color:rgba( 255 , 255 , 255 , 0.5 );
	  background: linear-gradient(204deg,rgba(174, 238, 186, 0.84) 0%, rgba(148, 169, 233, 1) 100%);
	  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.35));
	}
	*/

@media(hover:hover){
	.work-btn:hover img{
	  transform: translateY(-2px);
	  filter: drop-shadow(0 5px 12px rgba(0,0,0,0.35));
	}
}

	.work-btn:active img{
	  transform: translateY(0);
	  filter: drop-shadow(0 4px 5px rgba(0,0,0,0.25));
	}

	.push-btn span{
	  font-variation-settings:
	  'FILL' 1,
	  'wght' 400,
	  'GRAD' 0,
	  'opsz' 24
	}

.push-btn{
	pointer-events:auto ; position:relative; z-index:9999; 
	background-color:transparent !important;
  width: 38px;
  height: 38px;
  color: inherit;
  display: inline-flex;
  align-items: right;
  justify-content: right;
 // margin-right: 8px;
  cursor: pointer;
  user-select: none;
	padding:8px 8px;
}

.push-btn[aria-pressed="true"] span{
}
.push-btn:not(disabled) span:after{
}
.push-btn:active{
	color:#444444;
}

.push-btn:disabled span:after{
}
@media(hover:hover){
.push-btn:hover{
	color:#444444;
	background-color:transparent !important;
}
}

.push-btn:disabled{
#  opacity: 0.5;
#  cursor: not-allowed;
}
#rotate-lock{ display:none !important; }

#rotate-lock{
  position: fixed;
  inset: 0;
  z-index: 2147483647;

  align-items: center;
  justify-content: center;

  padding:
    calc(24px + env(safe-area-inset-top))
    calc(24px + env(safe-area-inset-right))
    calc(24px + env(safe-area-inset-bottom))
    calc(24px + env(safe-area-inset-left));

  background: rgba(0,0,0,.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  touch-action: none;

  min-height: 100dvh;
}

#rotate-lock[hidden]{ display:none !important; }

.rotate-lock__card{
  width: min(420px, 92vw);
  border-radius: 16px;
  background: rgba(255,255,255,.92);
  color: #111;
  padding: 18px 18px 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  text-align: center;

  max-height: calc(100dvh - 48px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  overflow: auto;
}

/* PWA install prompt */
/* 外側は“位置決め専用”にする */
#pwaInstall.pwa-install{
    position: fixed;
    left: var(--drawer-left);
    bottom: 0;
    /* transform: translateX(-50%); */
    z-index: 99999999999;
    /* width: 100%; */
    padding-bottom: env(safe-area-inset-bottom);
    background: none;
    box-shadow: none;
    backdrop-filter: none;
    /* margin: 0 auto; */
    /* min-width: 900px; */
    display: flex;
    justify-content: center;
    right: var(--right-w);
	opacity:1;
	transform: translateY(0px); 
  	transition: all 550ms ease;
}

/* 見た目はカードに集約 */
.pwa-card {
    padding: 14px 16px;
    border-radius: 16px 16px 0 0;
    background: rgba(255,255,255,0.96);
    color: #222;
    box-shadow: 0 -6px 24px rgba(0,0,0,0.35);
    width: 320px;
    height: 250px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    display: flex;
    align-content: space-between;
    flex-direction: column;
    justify-content: space-around;
}



.pwa-install.show {
  opacity: 1;
  pointer-events: auto;
}

.pwa-install.hidden {
	opacity:0;
	transform: translateY(150px); 
 display: none !important;
}


.pwa-title{ font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.pwa-desc{ font-size: 13px; line-height: 1.5; opacity: 0.95; }

.pwa-ios-hint{ margin-top: 10px; font-size: 12px; opacity: 0.9; }
.pwa-ios-steps{ margin-top: 6px; font-weight: 700; }

.pwa-actions{
  display: flex;
  gap: 10px;
  margin-top: 14px;
  justify-content: center;
}

.pwa-primary, .pwa-secondary{
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 700;
  cursor: pointer;
}

.pwa-primary{ background: #2b72ff; color: #fff; }
.pwa-secondary{ background: rgba(255,255,255,0.12); color: #222; }

.pwa-ios-hint.hidden{ display:none; }



:root{
  --wsm-cyan: #55f5ff;
  --wsm-ink: #062127;

  --wsm-line: rgba(85,245,255,.55);
  --wsm-line2: rgba(85,245,255,.28);

  --wsm-bg: rgba(12, 80, 92, .18);
  --wsm-panel: rgba(235, 253, 255, .92);
  --wsm-card: rgba(255,255,255,.78);
  --wsm-card2: rgba(255,255,255,.72);

  --wsm-radius: 0px;

  /* ←ここが「左右マージン」相当：カード内パディング */
  --wsm-pad-x: 16px;
  --wsm-pad-y: 14px;
}

/* backdrop */
.wsm-backdrop{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.8);
  z-index: 99999999999;
  padding: 0;
	backdrop-filter:blur(5px);
}
.wsm-backdrop.show{ display:flex; }

/* clap layer -- モーダル(z-index:1)より上に表示 */
.wsm-clap-layer{
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 2;
}
.wsm-clap{
  position: absolute;
  transform: translate(-50%,-50%);
  filter: drop-shadow(0 0 10px rgba(255,255,255,.35));
}
@media (max-width: 899px){
	.wsm-modal{
		min-height:450px !important;
	}
	#wsmAiCard.is-overlap{
		top:-338px !important;
	}
	#logoDropdown hr[pc-only],
	#logoDropdown button[pc-only]{
		display:none;
	}
	
}

/* modal */
.wsm-modal{
	min-height:708px;
	padding:20px;	

  position: relative;
  z-index: 10;

	width:550px;
  max-height: 92vh;
  /* AIカードがposition:relativeで上にはみ出すためoverflow:visibleにする */
  overflow: visible;
  /* モーダル自体の高さを固定（AIカード展開でモーダルが縮まないよう） */
  display: flex;
  flex-direction: column;

	border-radius:30px !important;
  background: var(--wsm-panel);
  color: var(--wsm-ink);

  box-shadow:
    0 18px 60px rgba(0,0,0,.25),
    0 0 0 1px rgba(255,255,255,.55) inset;
	max-width:620px;
}

.wsm-close{
  position:absolute;
  top: 10px;
  right: 20px;
  width: 34px;
  height: 34px;
  border-radius: 0;
 # border: 1px solid var(--wsm-line2);
 # background: rgba(255,255,255,.65);
	background:transparent;
  color: rgba(6,33,39,.9);
  cursor: pointer;
  font-size: 30px;
  line-height: 30px;
	opacity:0.5;
}
.wsm-close:hover,
.wsm-close:active,
{
#  border-color: var(--wsm-line);
#  box-shadow: 0 0 0 3px rgba(85,245,255,.18);
	opacity:1;
}

/* header */
.wsm-head{
  #padding: 30px var(--wsm-pad-x) 30px var(--wsm-pad-x);
  #border-bottom: 1px solid var(--wsm-line2);
	padding:10px 30px;
	padding-bottom:15px;
}
.wsm-title{
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .02em;
}
.wsm-subtitle{
  margin-top: 4px;
  font-size: 12px;
  opacity: .75;
}

/* grid */
.wsm-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  /* modalのflex子要素として残り高さを占有 */
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
  /* AIカードのabsoluteがgrid内に収まるようoverflowはvisible */
  overflow: visible;
}

/* cards */
.wsm-card{
  background: var(--wsm-card);
  border-radius: 0;
 // border-top: 1px solid var(--wsm-line2);
 // border-right: 1px solid var(--wsm-line2);
 // padding: var(--wsm-pad-y) var(--wsm-pad-x);
  box-shadow: none;
//	margin:0 30px;
}
.wsm-card:first-child{ border-top: 0; }
.wsm-grid > .wsm-card:nth-child(2n){ border-right: 0; }

.wsm-card--header,
.wsm-card--work{
  grid-column: 1 / span 2;
  border-right: 0;
  background: rgba(255,255,255,.86);
  border-bottom: 1px solid var(--wsm-line2);
}
.wsm-card--header{
	padding-bottom:10px;
}
.wsm-card--work{
	height:200px;
}

.wsm-card--detail{
  grid-column: 1 / span 2;
  border-right: 0;
  padding: 0; /* 内訳セル側でpaddingを持つ */
  background: rgba(255,255,255,.76);

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

/* wsm-card--ai: #wsmAiWrapに移行したため空 */

/* 出社〜退社レンジ（勤務の上） */
.wsm-range{
  display: grid;
  gap: 4px;
}
.wsm-range-main{
  display: flex;
  align-items: center;
  gap: 10px;
	flex-direction:column;
	justify-content:flex-end;
	box-sizing:border-box;
	width:100%;
}
.wsm-range-main .wsm-box{
	display:flex;
	box-sizing:border-box;
	width:100%;
	justify-content:center;
	align-items:flex-start;
}
.wsm-value-big{
	padding:10px 20px;
	padding-bottom:0px !important;
}
.wsm-today-label{
	box-sizing:border-box;
	width:100%;
	text-align:left;

}
.wsm-work-time .wsm-value-big{
	padding: 0px 20px;
}


.wsm-range-time{
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .02em;
}
.wsm-range-tilde{
  font-size: 30px;
  font-weight: 900;
  opacity: .75;
}
.wsm-range-mark{
  font-size: 12px;
  font-weight: 900;
  opacity: .78;
	box-sizing:border-box;
	display:flex;
	justify-content:center;
}
.wsm-range-sub{
  font-size: 12px;
  opacity: .70;
  min-height: 14px;
}

.wsm-divider{
  height: 1px;
  margin: 6px 0;
  background: var(--wsm-line2);
  border-bottom: 1px solid var(--wsm-line2);
}
.wsm-sub-box{
	display:flex;
	min-width:120px;
	max-width:150px;
	width:80%;
	box-sizing:border-box;
	flex-wrap:wrap;
}
.wsm-sub-box .wsm-label{
	width:100%;
	box-sizing:border-box;
}
.wsm-work-sub>.wsm-sub-box,
.wsm-work-main>.wsm-sub-box,
.wsm-sub-box>.wsm-value-big,
.wsm-sub-box>.wsm-k,
.wsm-sub-box>.wsm-v
{
	box-sizing:border-box;
	width:100%;
}
.work-chart{
/*
	width:260px;
	height:260px;
*/
}

#workChart{

}

.wsm-card--work{
	display:flex;
	justify-content:space-around;
	align-items:center;
}
.wsm-chart{
	min-width:0;
	min-height:0;
	overflow:hidden;
	aspect-ratio:1/1;
	display:flex;
	justify-content:center;
	align-items:center;
	box-sizing:border-box;
	width:100%;
	height:100%;
}

#workChart.work-chart{
	height:100%;
	width:min(320px,100%);
	aspect-ratio: 1 / 1;
	display:flex;
	justify-content:center;
	align-items:center;
	min-width:0;
	min-height:0;
	overflow:hidden;
}
.workChart.work-chart > svg {
	width:100%;
	height:100%;
	display:block;
}



/* 勤務/残業 */
.wsm-work-top{
  display:flex;
  align-items: baseline;
	flex-direction:column;
 // gap: 20px;
	box-sizing:border-box;
	width:100%;
	padding: 0 20px;
}
.wsm-work-main{
  display:flex;
  align-items: flex-start;
	flex-direction:column;
	flex-grow:1;
	box-sizing:border-box;
	width:100%;
}
.wsm-work-time{
	width:100%;
	text-align:center;
}

.wsm-label-big{
  font-weight: 900;
  font-size: 16px;
  opacity: .9;
}
.wsm-value-big{
  font-weight: 900;
  font-size: 28px;
}
.wsm-work-sub{
	 text-align:right;
	display:flex;
	justify-content:flex-end;
	flex-direction:row;
	align-items:center;
	box-sizing:border-box;
	gap:10px;
	width:200px;
 }

.wsm-work-sub .wsm-v{
	text-align:right !important;
}

.wsm-label-small{
  font-size: 11px;
  opacity: .70;
}
.wsm-value-small{
  font-size: 14px;
  font-weight: 900;
  opacity: .90;
}

.wsm-row{
  display:flex;
  align-items:center;
  justify-content: center;
	flex-direction:column;

  padding: 10px var(--wsm-pad-x);

  border-bottom: 1px solid var(--wsm-line2);
  border-right: 1px solid var(--wsm-line2);
  margin: 0;
}
.wsm-row:nth-child(2n){ border-right: 0; }
.wsm-row:nth-last-child(-n+2){ border-bottom: 0; }


.wsm-row .wsm-k .wsm-v{
	display:flex;
	
}
.wsm-row .wsm-v{
#	text-align:right;
}


.wsm-k{
	display:flex;
	align-items:center;
  font-size: 12px;
  font-weight: 800;
  opacity: .80;
	gap:5px;
}

.wsm-v{
	padding-top:2px;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .01em;
  box-sizing:border-box;
	width:100%;
	text-align:center;

}
.wsm-ai-wrapper{
	position:relative;
	grid-column: 1 / span 2;
	height:120px;
	margin-top:20px;
	
}

/* AI */
.wsm-ai-head{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
//  margin-bottom: 10px ;
	padding: 5px 20px ; 
}
.wsm-ai-title{
  font-size: 18px;
  font-weight: 900;
	display:flex;
	gap:5px;
}
.wsm-ai-retry{
  border: 1px solid var(--wsm-line2);
  background: rgba(255,255,255,.70);
  color: rgba(6,33,39,.90);
  padding: 6px 10px;
  border-radius: 0;
  cursor: pointer;
  font-size: 12px;
}
.wsm-ai-retry:hover{
  border-color: var(--wsm-line);
  box-shadow: 0 0 0 3px rgba(85,245,255,.18);
}
.wsm-ai-body{
	display:flex;
	overflow:auto;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
	height:100px;
}




/* footer */
.wsm-foot{
  padding: 15px 30px;
	padding-bottom:5px;
 // border-top: 1px solid var(--wsm-line2);
  display:flex;
  justify-content: flex-end;
}
.wsm-ok{
  min-width: 120px;
  border-radius: 0;
  #border: 1px solid var(--wsm-line);
  #background: rgba(85,245,255,.25);
  color: rgba(6,33,39,.95);
  padding: 10px 14px;
  font-weight: 900;
  cursor: pointer;
}
.wsm-foot .work-btn{
	font-size:14px;
}
@media(hover:hover){
.wsm-ok:hover{
  box-shadow: 0 0 0 3px rgba(85,245,255,.18);
}
}
.wsm-area-o2{
	display:flex;
	flex-direction:column;
	align-items:center;
}

/* スマホ：見た目維持してフォントで収める */
@media (max-width: 520px){
	.wsm-modal{
		background-color:transparent important!;
		box-shadow:none important!;
	}
  :root{
    --wsm-pad-x: 14px;
    --wsm-pad-y: 12px;
  }
  .wsm-modal{
    width: 100vw;
    max-height: 92vh;
    border-left: 0;
    border-right: 0;
//	background-color:transparent !important;
	box-shadow:none !important;
	border-radius:0px !important;
  }
.wsm-foot{
	padding: 0px 0px !important;
	padding-top: 15px !important;
}
.wsm-range-tilde{
  font-size: 20px;
}
	.wsm-card--work{
		height:150px !important;
	}
	.wsm-head{
		padding: 0px !important;
		padding-bottom:20px !imortant;
	}

	.wsm-close{
		display:none !important;
	}
	.wsm-area-o2{
		padding-top:5px;
	}
	.wsm-card{

	}
  .wsm-title{ font-size: 16px; }
  .wsm-range-time{ font-size: 16px; }
  .wsm-value-big{ font-size: 22px; }
  .wsm-v{ font-size: 14px; }
  .wsm-ai-body{ font-size: 12px; }
  .wsm-close{
		display:none;
	}

	.wsm-close{
		display:none !important!;
	}

	.wsm-card{
//		margin:0 5px;	
	}
	.wsm-work-top{
//		padding:0px !important;
	}
	.wsm-card-top{
		width:200px;
	}
	.wsm-work-sub{
		width:150px;
	}
	
	
	.wsm-value-big{
		padding:0px 0px !important;

	}
	.wsm-row{
		padding: 5px;
	}
}


.wsm-ai-body {
  position: relative;
}
.ai-text{
	margin: 0px 20px;
}

.ai-loading {
	margin-top:5px;
	margin-left:30px;
	position:absolute;
  height: 24px;
}
.ai-loading.hide{
	display:none;
}

.ai-loading span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6b8cff;
  animation: bounce 1.4s infinite ease-in-out both;
}

.ai-loading span:nth-child(1) { animation-delay: -0.32s; }
.ai-loading span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
  0%, 80%, 100% { transform: scale(0); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

#seatDecisionMsg{
  position: fixed;
	bottom:calc( 80px + var(--bottom-panel-h,0px) );
//	bottom: calc(80px + max(var(--bottom-panel-h, 300px), 300px)) !important;

  left: calc(32px + var(--drawer-left, 0px));
  z-index: 99999;

  padding: 10px 14px;
  border-radius: 10px;

  background: rgba(0,0,0,.65);
  color: #fff;
  font-size: 14px;
  line-height: 1.3;

  pointer-events: none;
  user-select: none;

  animation: seatDecisionFloat 2.6s ease-in-out infinite;

  opacity: 0;
  transition: opacity .25s ease, left .2s ease;
}

body:not([data-drawer-open="1"]) #seatDecisionMsg.show{ opacity: 1; }

@keyframes seatDecisionFloat{
  0%,100%{ transform: translateY(0); }
  50%    { transform: translateY(-6px); }
}

/* ===== 長押しバー用：ズーム非追従の固定オーバーレイ ===== */
#holdOverlay{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999999; 
}

.hold-bar{
  position: absolute;
  width: 120px; 
  height: 16px;
  border-radius: 999px;
  background: rgba(0,0,0,0.15);
  overflow: hidden;
  opacity: 0;
  transform: translateZ(0);
  transition: opacity 120ms linear;

  box-shadow: 0 6px 14px rgba(0,0,0,0.18);
}

.hold-bar.is-show{
  opacity: 1;
}

.hold-bar__fill{
  width: 0%;
  height: 100%;
  border-radius: 999px;

  background: rgb(241,196,15);

  background-image: linear-gradient(to bottom, rgba(255,255,255,0.35), rgba(255,255,255,0));
}

.seat{
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}


@keyframes holdBlink {
  0% { transform:scale(0.5) ; opacity: 1; }
  50% { transform:scale(0.8) ; opacity: .2; }
  100% { transform:scale(1.0) ; opacity: 1; }
}

.label2.hold-blink,
.user-icon.hold-blink{
  transition: opacity .15s;
  animation: holdBlink .5s linear infinite;
}

.toilet-toggle{
  user-select:none;
  -webkit-user-select:none;
  -webkit-touch-callout:none;
}

.toilet-ui{
  display:inline-flex;
  align-items:center;
  gap:10px;
}

.toilet-holdbar{
  width:84px;
  height:8px;
  border-radius:999px;
  background:rgba(0,0,0,.12);
  overflow:hidden;
  display:none; /* 長押し中だけ表示 */
}
.toilet-holdbar i{
  display:block;
  height:100%;
  width:0%;
  background:rgba(0,0,0,.55);
  border-radius:999px;
}
.toilet-toggle.is-holding .toilet-holdbar{
  display:block;
}

.seat.toilet-holding{
  outline: 3px solid rgba(46, 204, 113, 0.9);
  outline-offset: 2px;
  animation: toiletHoldBlink 0.6s ease-in-out infinite;
}

@keyframes toiletHoldBlink{
  0%   { outline-color: rgba(46, 204, 113, 0.25); }
  50%  { outline-color: rgba(46, 204, 113, 0.95); }
  100% { outline-color: rgba(46, 204, 113, 0.25); }
}


.work-btn{
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.work-btn::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,#2ecc71,#27ae60);
  transform:scaleX(0);
  transform-origin:left center;
  transition:transform 0.05s linear, opacity 0.2s;
  opacity:0.9;
  z-index:-1;
}

.work-btn.hold-filling::before{
  transform:scaleX(var(--hold-progress,0));
}

.work-btn.hold-done::before{
  transform:scaleX(1);
}




.cfdlg{
	position: fixed;
  inset: 0;
  z-index: 99999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
	z-index:9999999;
}
.cfdlg.is-open{ display:flex; }

.cfdlg__backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,0.45);
	backdrop-filter:blur(5px);
}
.cfdlg__other-info{
	font-size:12px;
	margin-bottom:14px;
	overflow-y:auto;
	white-space:pre-wrap;
	max-height:100px;
}
.cfdlg__img{
	text-align:center;
	display:none;
	max-width:320px;
	object-fit: contain;
}
.cfdlg__img_wrapper{
	display:flex;
	align-items:center;
	justify-content:center;
}

.cfdlg__panel{
  position:relative;
  width: min(420px, 92vw);
  border-radius: 16px;
  background: rgba( 255 , 255, 255 , 0.8 );//#eef5ff;
  box-shadow: 0 18px 48px rgba(0,0,0,0.25);
  padding: 32px 32px 14px;
}

.cfdlg__title{
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 16px;
}

.cfdlg__msg{
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 14px;
	padding:20px
}

.cfdlg__btns{
  display:flex;
  gap: 10px;
  justify-content: flex-end;
}

.cfdlg__btn{
	color:#222222;
	  padding: 5px 20px;
	  cursor: pointer;
		border-radius:20px;
	background-color:rgba(255,255,255,0.9);
	border: 1px solid #cccccc;
	display:inline-flex;
	 box-shadow:inset 3px 3px 7px #f8f8f8,
	user-select:none;
  cursor: pointer;
}
		.cfdlg__btn:active
		{
			transform:translateZ(0);
		background-color: rgba( 238 , 245 ,255 , 0.9 );
		     inset -3px -3px 2px #eef5ff;
			color: black !imoprtant;
		}
@media(hover:hover){
		.cfdlg__btn:hover
		{
			transform:translateZ(0);
			background-color: rgba( 238 , 245 ,255 , 0.9 );
		     inset -3px -3px 2px #eef5ff;
			color: black !imoprtant;
		}
}

button:focus {
  outline: none;
}

button:focus-visible {
  outline: 2px solid rgba(0,0,0,0.5);  /* 好きな色に */
  outline-offset: 1px;
}
.cfdlg__title_area{
	display:flex;
	gap:5px;
}
.cfdlg__user.user-icon{
	width:64px;
	height:64px;
	opacity:1;
	margin:0 auto;
	border-radius:64px;
}


/*
.cfdlg__btn--ghost{
  background:#eef2f7;
  color:#223;
}
.cfdlg__btn--danger{
  background:#ff4d4f;
  color:#fff;
}

*/


/* ===== AI overlap ===== */
/*
  構造:
    #wsmAiWrap   … gridフロー内。position:relative。ヘッダー分の高さを持つ。
                   モーダルのbottomに対してbottom:0固定（wsm-gridがrelative）
    #wsmAiCard   … position:absolute。
                   閉じた状態: top=0,bottom=0（ラッパーと同サイズ）
                   展開時:     top=--ai-open-top（上にはみ出す）,bottom=0固定
*/


/* カード本体: ラッパーに対してabsolute、bottomは常に0固定 */
#wsmAiCard{
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    background: rgba(255,255,255,0.76);
    box-shadow: 0 -4px 20px rgba(0,0,0,.10);
    overflow: hidden;
    transition: top .28s cubic-bezier(.4,0,.2,1);
    z-index: 10;
    box-sizing: border-box;
    grid-column: span 2;
  //  height: 120px;
 //   margin-top: 20px;
}

/* 展開時: topを上げる（bottomは0固定のままtopだけ移動） */
#wsmAiCard.is-overlap{
//  top: var(--ai-open-top, 0px);
	top:-433px;
    background: rgba(255,255,255,1);
  overflow-y: auto;
}

/* no-anim */
#wsmAiCard.no-anim{
  transition: none !important;
}

/* body */
#wsmAiBody{
  height: calc(100% - var(--ai-head-h, 48px));
  overflow-y: auto;
}

/* アイコン */
#wsmAiCard .wsm-ai-head.js-toggle::after{
  content: "expand_more";
  font-family: "Material Symbols Outlined";
  font-size: 22px;
  line-height: 1;
  margin-left: auto;
  opacity: .9;
  transition: transform .25s ease;
  cursor: pointer;
}
#wsmAiCard:not(.is-overlap) .wsm-ai-head.js-toggle::after{
  transform: rotate(180deg);
}

#aiLoading{
  padding: 4px 20px;
  display: flex;
}
#ai-response{
  padding-bottom: 8px;
}

.material-symbols-outlined,
span,
div,
button,
.btn,
input[type="button"],
input[type="submit"]{
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
}


.seatLockedMsg{
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px); 
  transform: translateX(-50%);

  z-index: 20;
  padding: 8px 14px;
  border-radius: 999px;

  font-size: 14px;
  font-weight: 700;

  background: rgba(255,255,255,.96);
	color:white !important;
  box-shadow: 0 12px 28px rgba(0,0,0,.18);

  white-space: nowrap;
  pointer-events: none;

  opacity:0;
  visibility:hidden;
  transition:.18s;
}

/*
.seatLockedMsg.show{
  opacity:1;
  visibility:visible;
  animation: floatSeatMsg 1.6s ease-in-out infinite;
}

@keyframes floatSeatMsg{
  0%,100% { transform: translate(-50%, 0); }
  50%     { transform: translate(-50%, -10px); }
}

*/

.seat , .seat *{
	touch-action:none;
}


/* tabs */
.rp-tabs{
  display:flex;
	justify-content:space-evenly;
	align-items:center;
  padding:0px;
  border-bottom:1px solid #cccccc;
}
.rp-tab{
  padding:8px 10px;
  cursor:pointer;
  user-select:none;
	width:100%;
text-align:center;
  background: rgba(255,255,255,1);
	color:#666;
}
.rp-tab.is-active{
  font-weight:bold;
	border-bottom: 2px solid #222222;
	color:#222;
}
button.rp-tab {
	justify-content:center !important;
}
.rp-tab span{
	padding-right:5px;
}



.drawer-title{
	display:flex;
	align-items:center;		
}
.drawer-title span{
	padding-right:5px;
}
.drawer-body button {
	background-color:transparent;
}
.drawer-body .row:not(.noselect) button{
	width:100%;
}
@media(hover:hover){
.drawer-body .row:not(.noselect):hover {
	background:#f6f6f6;	
	cursor:pointer;
}
}
.drawer-body .row.has-submenu:before{
	content:"\E5CC" ;
	font-family: "Material Symbols Outlined";
	display:inline-block;
	right:20px;
	width:20px;
	height:20px;
	position:absolute;
	pointer-events:none;
}



.right-panel{
  position: fixed;
  top: var(--toolbar-h);
  right: 0;
  height: calc(100dvh - var(--toolbar-h));
  width: var(--right-w);
  background: rgba(255,255,255,0.98);
  border-left: 1px solid #ddd;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  z-index: 4000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

@media (max-width: 899px){
  .right-panel{
    width: 100%;
    height: var(--bottom-panel-h);
    left:0; right:0;
    top:auto;
    bottom:0;
    border-left:none;
    border-top:1px solid #ddd;
  }
}
.rp-tabs{
  display:flex;
  justify-content:space-evenly;
  align-items:center;
  padding:0px;
  border-bottom:1px solid #cccccc;
}
.rp-tab{
  padding:8px 10px;
  cursor:pointer;
  user-select:none;
  width:100%;
  text-align:center;
  background: rgba(255,255,255,1);
  color:#666;
}
.rp-tab.is-active{
  font-weight:bold;
  border-bottom: 2px solid #222222;
  color:#222;
}
button.rp-tab { justify-content:center !important; }
.rp-tab span{ padding-right:5px; }
.right-panel .rp-tabs{
  flex: 0 0 auto;
}
.right-panel .rp-viewport{
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  touch-action: pan-y;
  overscroll-behavior: contain;
}
.right-panel .rp-track{
  display:flex;
  height:100%;
  will-change: transform;
}
.right-panel .rp-page{
  height:100%;
  min-height:0;
  overflow:auto;
}


#rightPanel.is-swiping-x .rp-page{
  overflow: hidden !important;
}

.material-symbols-outlined.fill{
  font-variation-settings:
  'FILL' 1;
}



/* iOS Safe Area対応（タブ数非依存） */
@media (max-width: 899px){
  .right-panel{
    width: 100vw;  /* 100%から100vwに変更 */
    height: var(--bottom-panel-h);
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    border-left: none;
    border-top: 1px solid #ddd;
    box-sizing: border-box;
  }
  
  .rp-viewport{
    width: 100%;
    overflow-x: hidden;  /* 横スクロールバーを隠す */
    touch-action: pan-y pan-x;
  }
  
  .rp-track{
    /* タブ数に依存しない：JS側で計算されるwidthを尊重 */
    min-width: 100%;
    width: auto;  /* JSで動的に設定される幅を使用 */
  }
  
  .rp-page{
    flex: 0 0 100vw;  /* 100%から100vwに変更 */
    width: 100vw;
    min-width: 100vw;
    max-width: 100vw;  /* 追加：はみ出し防止 */
    box-sizing: border-box;
  }
}


.toolbar-right{
	display:flex;
	min-width:340px;
//	justify-content:space-between;
	justify-content:flex-end;
}
@media (max-width: 899px){
	.toolbar-right{
		min-width:unset;
	}
}
#contextMenu button:hover{
	 background:#f6f6f6; 
}
.material-symbols-outlined.filled {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}



.login-card{ opacity:0; transition:opacity .18s ease; }
.login-card.show{ opacity:1; }


// フロア選択
.floor-dd { position: relative; display: inline-block; flex:1 ; width:100%;}

.floor-dd__btn{
	background-color:inherit;
  font: inherit;      
  font-family: inherit;
  display:flex; align-items:center; gap:10px;
  height: 44px;
  padding: 8px;
 // border: 1px solid rgba(0,0,0,.15);
 // border-radius: 10px;
//  background: #fff;
  cursor: pointer;
  user-select: none;
	width:100%;
	min-width:0;
	max-width:400px;
}

.floor-dd__thumb{
  width: 64px; height:32px;
//  border-radius: 7px;
  background: #eee center/cover no-repeat;
  flex: 0 0 auto;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
}

.floor-dd__label{
	display:flex;
	flex-direction:column;
	line-height:1.05;
	width:100%;
	text-align:left;
	min-width:0;
	flex: 1 1 auto;
}
.floor-dd__name{ font-size: 18px;
	white-space:nowrap;
	overflow:hidden;
	text-overflow:ellipsis;
	min-width:0;

 }
.floor-dd__sub{ font-size: 11px; opacity: .65; }

.floor-dd__chev{ font-size: 18px; opacity: .7; margin-left: 4px;
	flex:0 0 auto;
 }

.floor-dd__panel{
  position: absolute;
//  top: calc(100% + 8px);
//  right: 0;
	top:calc( var(--toolbar-h ) - 20px );
  width: 100%;
	max-width:400px;
  max-height: min(56vh, 420px);
  overflow: auto;
  background: #fff;
//  border: 1px solid rgba(0,0,0,.15);
  //border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
  z-index: 9999999;
//  padding: 8px;
	top: calc( var( --toolbar-h ) - 20px );
}

.floor-dd__item{
  display:flex; align-items:center; gap:10px;
  padding: 8px 8px;
  //border-radius: 10px;
  cursor: pointer;
}
.floor-dd__item:hover{ background: rgba(0,0,0,.06); }

.floor-dd__itemThumb{
  width: 64px; height: 32px;
  //border-radius: 10px;
  background: #eee center/cover no-repeat;
  flex: 0 0 auto;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
}

.floor-dd__itemMeta{ display:flex; flex-direction:column; min-width: 0; flex:1 1 0; }
.floor-dd__itemName{ font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.floor-dd__itemId{ font-size: 11px; opacity: .55; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.floor-dd__item[aria-selected="true"]{
  background: rgba(60,120,255,.12);
 // box-shadow: inset 0 0 0 1px rgba(60,120,255,.35);
}
.toolbar {
  display: flex;
  align-items: center;
}

.floor-dd {
  //margin-left: 80px;   /* ロゴとの間隔 */
	width:100%;
	flex:1;
	position:relative;
}

@media (max-width: 899px){
	
	.floor-dd__name{ font-size: 14px;  }
	.floor-dd__itemName{ font-size: 14px;  }

	.floor-dd {
	//  margin-left: 50px;   /* ロゴとの間隔 */
		width:100%;
		flex:1;
	}
	.floor-dd span{
	}
	.floor-dd__itemThumb,
	.floor-dd__thumb{
		display:none;
	}

	.floor-dd__panel{
		top: calc( var(--toolbar-h) - 3px );
	}
	.floor-dd__btn{
		height:30px;
		width:190px;
	}
}

button{
	color: inherit;
}

/* ===== 配置パレット ===== */
.seat-palette {
	display: flex;
	flex-direction: column;
	gap: 0;
	padding: 0px 0;
}

.palette-section {
	border-bottom: 1px solid rgba(0,0,0,0.08);
	padding-bottom: 6px;
	margin-bottom: 2px;
}

.palette-section-title {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 14px;
	font-weight: 700;
	color: #222;
	padding: 6px 8px 4px;
	letter-spacing: 0.5px;
}
.palette-section-title .material-symbols-outlined {
	font-size: 24px;
}
.palette-items {
    display: grid;
    flex-wrap: wrap;
    gap: 5px;
    padding: 5px;
    grid-template-columns: repeat(5,1fr);
    align-items: center;
    justify-content: center;
    justify-items: start;
    align-content: center;
    padding-left: 8px;
}

.palette-loading {

	font-size: 11px;
	color: #999;
	padding: 4px;
}

/* 机カード */
.palette-item {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: 100% !important;
    min-height: 60px;
    height: 100%;
    padding: 4px;
    border: 1px solid #ccc;
    border-radius: 3px;
    background: #f8f8f8;
    cursor: grab;
    user-select: none;
    font-size: 10px;
    text-align: center;
    color: #333;
    transition: background 0.1s, box-shadow 0.1s;
    box-sizing: border-box;
    box-sizing: border-box;
    grid: 1;
    align-content: center;
    flex: 1;
}
.palette-item:hover {
	background: #e8f0ff;
	border-color: #6699cc;
	box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.palette-item:active {
	cursor: grabbing;
}
.palette-item.dragging {
	opacity: 0.4;
}

.palette-item img {
	width: 44px;
	height: 32px;
	object-fit: contain;
	border-radius: 2px;
}
.palette-item .palette-label {
	font-size: 10px;
	line-height: 1.2;
	max-width: 56px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.palette-item .palette-sticky-icon {
    font-size: 14px;
    color: #888;
    position: absolute;
    left: 2px;
    top: 2px;
}

/* トイレカード */
.palette-item.toilet-item {
	min-height: 52px;
}
.palette-item.toilet-item .toilet-preview {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 3px;
	font-size: 10px;
	color: #666;
}
.palette-item.toilet-item .toilet-preview .material-symbols-outlined {
	font-size: 14px;
}

/* 会議室グリッド */
.palette-conference-grid {
	display: grid !important;
	grid-template-columns: 32px repeat(3, 1fr);
	gap: 4px !important;
	align-items: center;
}
.palette-conf-header {
	font-size: 10px;
	color: #666;
	text-align: center;
	font-weight: 600;
}
.conference-item {
	padding: 4px !important;
}

/* 会議室形状プレビュー */
.conf-shape {
	display: block;
	margin: auto;
	background: rgba(100,150,255,0.3);
	border: 1.5px dashed #446;
}
.conf-shape.circle {
	border-radius: 50%;
}
.conf-shape.square,
.conf-shape.rect {
	border-radius: 2px;
}

/* viewport ドロップゾーン ハイライト */
#viewport.palette-dragover {
	outline: 3px solid #4488ff;
	outline-offset: -3px;
}

/* 会議室 shape/size 対応 CSS */
.seat[data-type="CONFERENCE"][data-shape="circle"] .seat-rotator {
	border-radius: 50%;
}
.seat[data-type="CONFERENCE"][data-shape="rect"] .seat-rotator,
.seat[data-type="CONFERENCE"][data-shape="square"] .seat-rotator {
	border-radius: 2px;
}

/* 会議室はdata-wとdata-hからサイズを取得（JS側でstyle指定）*/
.seat[data-type="CONFERENCE"] {
	/* サイズはJSのcreateSeatでstyle直接設定 */
	width: unset;
	height: unset;
}

/* パレット プルダウン行 */
.palette-select-row {
	padding: 2px 8px 4px;
}
.palette-select {
	width: 100%;
	font-size: 11px;
	padding: 3px 4px;
	border: 1px solid #bbb;
	border-radius: 4px;
	background: #fff;
	color: #333;
}

/* ===== 複数選択 ===== */
.seat.is-selected > .seat-rotator {
	outline: 2px solid #2979ff;
	outline-offset: 2px;
}
/* .seat.is-selected::after - border削除（回転時に邪魔のため廃止） */

/* ラバーバンド */
#rubberBand {
	display: none;
	position: fixed;
	border: 1.5px dashed #2979ff;
	background: rgba(41,121,255,0.08);
	pointer-events: none;
	z-index: 9999;
}

/* 複数選択コンテキストメニュー */
.ctx-section-label {
	font-size: 10px;
	color: #888;
	padding: 4px 12px 2px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}
#ctxMulti button {
	display: flex;
	align-items: center;
	gap: 6px;
	width: 100%;
	padding: 6px 14px;
	background: none;
	border: none;
	cursor: pointer;
	font-size: 13px;
	white-space: nowrap;
}
#ctxMulti button:hover { background: #f0f0f0; }


/* === admin-only UI === */
.admin-only{ display:none; }
body[data-admin="1"] .admin-only{ display:block; }

/* === unpublished floors in dropdown (unlocked only) === */
.floor-dd__item.is-unpublished{ opacity:0.55; }
/*
.viewport-loading {
  position: fixed;
  top: var(--toolbar-h);
  bottom: var(--bottom-panel-h);
  left: var(--drawer-left, 0px);
  right: var(--right-w, 0px);
  display:none;
  align-items:center;
  justify-content:center;
  pointer-events:none;
  background:rgba(255,255,255,0.08);
  backdrop-filter:blur(1px);
  z-index:999999;
}
*/
.viewport-loading {
  position: fixed;
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(1px);
  z-index: 999999;
}


.viewport-loading.show {
  display: flex;
}

.viewport-loading-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.88);
  box-shadow: 0 10px 28px rgba(0,0,0,0.12);
  color: #334155;
  font-size: 14px;
  font-weight: 600;
}

/*
.viewport-loading .spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(51,65,85,0.18);
  border-top-color: rgba(51,65,85,0.82);
  border-radius: 50%;
  animation: viewportSpin 0.8s linear infinite;
}
*/

@keyframes viewportSpin {
  to { transform: rotate(360deg); }
}
#viewportWrap{
	position:relative;
}
		.seat[data-type="OBJECT"]{ cursor:unset !important; }



.rp-topbar{
  display:flex;
  align-items:stretch;
  width:100%;
  min-width:0;
}

.rp-topbar > .rp-tabs{
  flex:1 1 auto;
  min-width:0;
	display:flex;
}

.rp-topbar > .chat-expand-btn{
  flex:0 0 auto;
	margin-left:6px;
}
#rightPanel .rp-topbar,
#rightPanel .rp-viewport {
	opacity:1;
	transition:opacity .18s ease;
}
#rightPanel.plugins-loading .rp-topbar,
#rightPanel.plugins-loading .rp-viewport {
	opacity:0;
	pointer-events:none;
}
.worksystem-page .input-area{
  display:flex;
  flex-direction:column !important;
	align-items:flex-start !important;
  gap:14px;
}

.worksystem-page .row{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.worksystem-page .row.two-colsep{
  display:grid;
  grid-template-columns:342px 250px;
  gap:14px ;
}

.worksystem-page .row.two-cols{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.worksystem-page .row.three-cols{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}
.worksystem-page .row.four-cols{
  display:grid;
  grid-template-columns:auto auto auto auto;
  gap:14px;
}

.worksystem-page .row.four-cols.row1{
  grid-template-columns:150px 180px 100px 100px;
}
.worksystem-page .row.two-cols.row2{
  grid-template-columns:120px 120px;
}
.worksystem-page .row.four-cols.row3{
  grid-template-columns:120px 120px 150px 220px;
}


.worksystem-page .input-area{
	margin-top:4px !important;
}


.worksystem-page .field-block{
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width:0;
}

.worksystem-page .field-block-wide{
  width:100%;
}

.worksystem-page .input-label{
  font-size:13px;
  font-weight:600;
  color:#333;
	text-align:left;
}

.worksystem-page .inline-fields{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.worksystem-page .ws-select,
.worksystem-page .ws-num,
.worksystem-page .ws-time{
  line-height:32px;
	height:32px;
  padding:0 8px;
  border:1px solid #cfd6df;
	box-sizing:border-box;
  background:#fff;
  color:#222;
  outline:none;
  transition:border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.worksystem-page .ws-select{
  min-width:100px;
}

.worksystem-page .ws-num{
  width:92px !important;
}

.worksystem-page .ws-time{
  width:108px !important;
}

#wsPaidLeaveExpireDays,
#wsSummerDays{
	width:80px !important;
	text-align:right;
}

.worksystem-page .ws-select:focus,
.worksystem-page .ws-num:focus,
.worksystem-page .ws-time:focus{
//  border-color:var(--accent,#5b6af5);
//  box-shadow:0 0 0 3px rgba(91,106,245,.12);
}

.worksystem-page .ws-select:disabled,
.worksystem-page .ws-num:disabled,
.worksystem-page .ws-time:disabled{
  background:#f3f5f8;
  color:#98a2b3;
  cursor:not-allowed;
}

.worksystem-page .tilde{
  color:#667085;
  font-size:14px;
}

.worksystem-page .offday{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.worksystem-page .offday-btn{
  height:26px !important;
  width:20px !imoprtant;
  border:1px solid #d5dbe5;
  background:#fff;
  color:#444;
  cursor:pointer;
  transition:all .15s ease;
}

.worksystem-page .offday-btn:hover{
  background:#f6f8fb;
}

.worksystem-page .offday-btn.active{
  background:var(--accent,#5b6af5);
  border-color:var(--accent,#5b6af5);
  color:#fff;
}

.worksystem-page .field-error{
  display:none;
  margin-bottom:2px;
  font-size:12px;
  line-height:1.35;
  color:#d92d20;
}

.worksystem-page .field-block.has-error .field-error{
  display:block;
}

.worksystem-page .field-block.has-error .ws-select,
.worksystem-page .field-block.has-error .ws-num,
.worksystem-page .field-block.has-error .ws-time{
  border-color:#d92d20;
  box-shadow:0 0 0 3px rgba(217,45,32,.10);
  background:#fffafa;
}

.worksystem-page .ws-holiday-editor{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.worksystem-page .ws-holiday-picker{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}

.worksystem-page .ws-month{
  border:1px solid #e3e7ee;
  padding:10px;
  background:#fff;
}

.worksystem-page .ws-month-title{
  font-size:16px;
  font-weight:700;
  margin-bottom:8px;
}

.worksystem-page .ws-month-grid{
  display:grid;
  grid-template-columns:repeat(7,1fr);
  gap:6px;
}

.worksystem-page .ws-day-btn{
  height:16px;
	width:16px !important;
  border:1px solid #dde3ea;
  background:#fff;
  cursor:pointer;
  font-size:10px;
  color:#3b4453;
  transition:all .15s ease;
	text-align:center;
	display:flex;
	align-items:center;
	justify-content:center;
}

.worksystem-page .ws-day-btn:hover{
  background:#f6f8fb;
}

.worksystem-page .ws-day-btn.active{
  background:var(--accent,#5b6af5);
  border-color:var(--accent,#5b6af5);
  color:#fff;
  font-weight:700;
}

.worksystem-page .ws-selected-wrap{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.worksystem-page .ws-selected-title{
  font-size:13px;
  font-weight:700;
}

.worksystem-page .ws-selected-list{
	max-width:660px;
  display:flex;
  flex-wrap:wrap;
  gap:4px;
}

.worksystem-page .ws-selected-empty{
  font-size:12px;
  color:#667085;
}

.worksystem-page .ws-holiday-chip{
  display:inline-flex;
  align-items:center;
  gap:3px;
  height:34px;
  padding:0 10px;
  border:1px solid #d5dbe5;
  border-radius:999px;
  background:#fff;
  cursor:pointer;
  color:#344054;
}

.worksystem-page .ws-holiday-chip .material-symbols-outlined{
  font-size:18px;
}

@media (max-width: 980px){
  .worksystem-page .row.two-cols{
    grid-template-columns:1fr;
  }

  .worksystem-page .ws-holiday-picker{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width: 640px){
  .worksystem-page .ws-holiday-picker{
    grid-template-columns:1fr;
  }
}


.worksystem-page .input-area{
	flex-direction:column !important;
}
.worksystem-page .input-area .offday{
	flex-direction:rows;	
 }
.worksystem-page button{
}
button.offday-btn{
	width:unset !important;
}
.ws-day-btn{
	width:15px;
}
#subpage-edit_worksystem{
	width:700px;
	max-width:700px;
}
.worksystem-page .ws-mmdd{
  width:110px;
  height:38px;
  padding:0 10px;
  background:#fff;
  color:#222;
  outline:none;
  font-variant-numeric:tabular-nums;
  letter-spacing:.02em;
  transition:border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.worksystem-page .ws-mmdd:focus{
//  border-color:var(--accent,#5b6af5);
 // box-shadow:0 0 0 3px rgba(91,106,245,.12);
}

.worksystem-page .field-block.has-error .ws-mmdd{
  border-color:#d92d20;
  box-shadow:0 0 0 3px rgba(217,45,32,.10);
  background:#fffafa;
}
.worksystem-page div.row{
	display:flex;
	align-content:flex-start;
	align-items:flex-start;
	padding:4px 0px;
}
#wsClosingDay,
#wsPaymentDay{
	width:40px !important;
	text-align:right;
}
.ws-hm{
	width:80px !important;
	text-align:center;
}
.ws-select{
	width:100px !important;
}
#wsAnniversaryMMDD{
	width:80px !important;
	text-align:center;
}
#subDrawer input:focus{
	outline:none;
	box-shadow:none;
	border-style:solid !important;
	border-color:#9988ff !important;
	border-width:2px !important;
}
input[type="number"]{
	text-align:right;
}
input::-webkit-ouer-spin-button,
input::-webkit-inner-spin-button{
  -webkit-appearance: none;
  margin: 0;
	-moz-appearance: textfield;
}
.worksystem-page div.right{
	width:100%;
}
div.worksystem-page{
	align-items:center;
}
.worksystem-page .ws-toggle{
  display:inline-flex;
  align-items:center;
  gap:10px;
  cursor:pointer;
  user-select:none;
}

.worksystem-page .ws-toggle input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.worksystem-page .ws-toggle-ui{
  position:relative;
  width:46px;
  height:26px;
  border-radius:999px;
  background:#d0d5dd;
  transition:background-color .15s ease;
  flex:0 0 auto;
}

.worksystem-page .ws-toggle-ui::after{
  content:"";
  position:absolute;
  top:3px;
  left:3px;
  width:20px;
  height:20px;
  border-radius:50%;
  background:#fff;
  box-shadow:0 1px 3px rgba(0,0,0,.18);
  transition:left .15s ease;
}

.worksystem-page .ws-toggle input:checked + .ws-toggle-ui{
  background:var(--accent,#5b6af5);
}

.worksystem-page .ws-toggle input:checked + .ws-toggle-ui::after{
  left:23px;
}

.worksystem-page .ws-toggle-label{
  font-size:13px;
  color:#344054;
}
.login-providers{
	display:flex;
	gap:10px;
	flex-direction:column;
	
}
