@font-face{font-family:Tajawal;src:url(fonts/Tajawal-Regular.ttf);font-weight:400;font-display:swap}
@font-face{font-family:Tajawal;src:url(fonts/Tajawal-Bold.ttf);font-weight:700;font-display:swap}
@font-face{font-family:Tajawal;src:url(fonts/Tajawal-ExtraBold.ttf);font-weight:800;font-display:swap}
html,body{margin:0;min-height:100%;background:#fdfcfa;overscroll-behavior-y:contain}
body{padding:max(12px,env(safe-area-inset-top)) 12px max(24px,env(safe-area-inset-bottom));-webkit-text-size-adjust:100%}
.tm-root{max-width:980px;margin:0 auto}

body { background: var(--ds-page); }

.tm-root * { box-sizing: border-box; font-family: inherit; }

.tm-head { background: #16213A; color: #F3EFE6; border-radius: 20px; padding: 22px 20px; }

.tm-brand { color: #E8780C; font-weight: 800; letter-spacing: .12em; font-size: 14px; direction: ltr; text-align: start; }

.tm-head h1 { margin: 6px 0 6px; font-size: 30px; font-weight: 800; }

.tm-head p { margin: 0 0 14px; font-size: 16px; line-height: 1.6; opacity: .9; }

.tm-sum { display: flex; flex-wrap: wrap; gap: 8px; }

.tm-sum span { background: rgba(243,239,230,.12); border-radius: 999px; padding: 6px 14px; font-size: 15px; font-weight: 700; }

.tm-send { display: grid; gap: 8px; text-align: center; }

.tm-send-btn { background: #E8780C; color: #fff; font-size: 18px; min-height: 52px; border-radius: 14px; }

.tm-send-btn:disabled { background: #c9ccd3; }

.tm-send p, .tm-saved { margin: 0; font-size: 14px; color: #4a5368; }
@keyframes of-bob { 0%,100% { transform: translateZ(6px) translateY(0); } 50% { transform: translateZ(6px) translateY(2px); } }
@keyframes of-type { 0%,100% { rotate: 0deg; } 50% { rotate: 7deg; } }
@keyframes of-pop { from { scale: .3; } to { scale: 1; } }
@media (prefers-reduced-motion: reduce) { .of-head, .of-arm, .of-badge { animation: none; } }
@media (min-width: 700px) { .of-floor { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 14px; padding: 22px 16px; } }
@media (min-width: 900px) { .tm-root { max-width: 980px; margin: 0 auto; } }

.of-status { position: absolute; top: 2px; left: 4px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 800; background: #fff; color: #16213A; transform: translateZ(40px); box-shadow: 0 2px 6px rgba(0,0,0,.2); }

.of-status i { width: 8px; height: 8px; border-radius: 50%; background: #1f9d55; }

.of-status.free i { background: #8a93a6; }

.of-status.busy i { animation: of-pulse 1.4s ease-in-out infinite; }
@keyframes of-pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }


.o3-wrap { position: relative; height: min(62vh, 480px); min-height: 340px; border-radius: 20px; overflow: hidden; background: #dce6f2; box-shadow: 0 6px 18px rgba(22,33,58,.2); }

.o3-canvas { width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }

.o3-labels { position: absolute; inset: 0; pointer-events: none; }

.o3-label { position: absolute; left: 0; top: 0; pointer-events: auto; display: inline-flex; align-items: center; gap: 4px; max-width: 120px; padding: 3px 8px; min-height: 24px; border: 0; border-radius: 999px; background: rgba(255,255,255,.95); color: #16213A; font-size: 11px; font-weight: 800; box-shadow: 0 2px 6px rgba(0,0,0,.25); cursor: pointer; }

.o3-label b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 800; }

.o3-label i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #8a93a6; }

.o3-label.busy i { background: #1f9d55; }

.o3-label.c b { display: none; }
 .o3-label.c { padding: 6px; min-height: 0; }

.o3-label.v-like { outline: 2px solid #1f9d55; }
 .o3-label.v-dislike { outline: 2px solid #d64545; }

.o3-label.sel { background: #E8780C; color: #fff; }

.o3-zone { position: absolute; left: 0; top: 0; padding: 2px 9px; border-radius: 8px; background: rgba(22,33,58,.8); color: #F3EFE6; font-size: 11px; pointer-events: none; font-weight: 800; white-space: nowrap; }

.o3-tools { position: absolute; bottom: 38px; inset-inline-start: 10px; display: grid; gap: 6px; }

.o3-tools button { width: 44px; height: 44px; border: 0; border-radius: 12px; background: rgba(22,33,58,.9); color: #F3EFE6; font-size: 22px; font-weight: 800; cursor: pointer; }

.o3-hint { position: absolute; bottom: 8px; inset-inline: 10px; margin: 0; text-align: center; font-size: 12px; color: #16213A; background: rgba(255,255,255,.75); border-radius: 8px; padding: 3px 8px; pointer-events: none; }

.o3-zones { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }

.o3-zones button { flex: none; min-height: 44px; padding: 0 14px; border: 2px solid #16213A; background: #fff; color: #16213A; border-radius: 999px; font-size: 14px; font-weight: 800; cursor: pointer; }

.o3-panel { background: linear-gradient(#a8743f, #8a5b2e); color: #F3EFE6; border-radius: 20px; padding: 14px; box-shadow: 0 6px 14px rgba(22,33,58,.25); }

.o3-panel.is-like { box-shadow: 0 0 0 3px #1f9d55; }
 .o3-panel.is-dislike { box-shadow: 0 0 0 3px #d64545; }

.o3-panel h2 { margin: 6px 0 0; font-size: 22px; font-weight: 800; }

.o3-job { margin: 2px 0 8px; font-size: 14px; opacity: .92; }

.o3-pnav { display: flex; align-items: center; justify-content: space-between; font-weight: 800; font-size: 14px; }

.o3-pnav button { width: 44px; height: 44px; border: 0; border-radius: 12px; background: rgba(22,33,58,.85); color: #F3EFE6; font-size: 22px; cursor: pointer; }

.of-status.in-panel { position: static; transform: none; display: inline-flex; margin-bottom: 10px; }

.o3-votes { grid-template-columns: 1fr 1fr; }

.o3-roster { display: grid; gap: 10px; }

.o3-roster h3 { margin: 0 0 6px; font-size: 15px; font-weight: 800; }

.o3-roster div > div { display: flex; flex-wrap: wrap; gap: 6px; }

.o3-roster button { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; border: 2px solid #d5cfc0; background: #fff; border-radius: 12px; font-size: 14px; font-weight: 700; color: #16213A; cursor: pointer; }

.o3-roster button.sel { border-color: #E8780C; background: #fff3e6; }

.o3-roster button.v-like { box-shadow: inset 0 0 0 2px #1f9d55; }
 .o3-roster button.v-dislike { box-shadow: inset 0 0 0 2px #d64545; }

.o3-roster i { width: 9px; height: 9px; border-radius: 50%; background: #8a93a6; }
 .o3-roster i.busy { background: #1f9d55; }
@media (min-width: 900px) { .o3-wrap { height: 560px; } }
.tm-root { font-family: Tajawal, system-ui, sans-serif; color: #16213A; display: grid; gap: 18px; }
.o3-status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: #fff; color: #16213A; font-size: 13px; font-weight: 800; margin-bottom: 10px; }
.o3-status i { width: 9px; height: 9px; border-radius: 50%; background: #8a93a6; } .o3-status.busy i { background: #1f9d55; }
.o3-votes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.o3-votes button, .o3-ttoggle, .o3-tsend, .tm-send-btn, .o3-install { min-height: 44px; border: 0; border-radius: 10px; font-size: 15px; font-weight: 800; cursor: pointer; font-family: inherit; }
.o3-votes button { background: #F3EFE6; color: #16213A; } .o3-votes .up.on { background: #1f9d55; color: #fff; } .o3-votes .down.on { background: #d64545; color: #fff; }
.o3-ttoggle { width: 100%; margin-top: 8px; border: 2px solid #F3EFE6; background: transparent; color: #F3EFE6; }
.o3-tsend { width: 100%; margin-top: 6px; background: #E8780C; color: #fff; } .o3-tsend:disabled { background: #c9ccd3; color: #5a6275; }
.o3-tbox textarea { width: 100%; box-sizing: border-box; margin-top: 8px; border-radius: 10px; border: 0; padding: 8px; font: 15px Tajawal, system-ui; background: #fff; color: #16213A; min-height: 76px; }
.o3-note { margin: 6px 0 0; font-size: 13px; color: #4a5368; } .o3-panel .o3-note { color: #F3EFE6; }
.tm-head .o3-note, .tm-head .o3-stat { color: #F3EFE6; }
.o3-stat { margin: 10px 0 0; font-size: 13px; opacity: .9; } .o3-stat.stale { color: #ffbe7a; }
.o3-install { margin-top: 12px; background: #E8780C; color: #fff; padding: 0 16px; } .o3-install[hidden] { display: none; }
.tm-send-btn { background: #E8780C; color: #fff; font-size: 18px; min-height: 52px; border-radius: 14px; width: 100%; } .tm-send-btn:disabled { background: #c9ccd3; }
.o3-wrap { height: min(62vh, 480px); }
