/* The live demo: a Mac desktop with Paidtime on it. Everything is scoped to .pt so the
   page around it can't leak in. Sizes are in desktop points; the stage scales as a whole. */

.pt-fit { position: relative; width: 100%; }
.pt {
  --ink: #f2f2f4;
  --ink-2: rgba(235, 235, 245, 0.62);
  --ink-3: rgba(235, 235, 245, 0.32);
  --fill: rgba(255, 255, 255, 0.06);
  --fill-2: rgba(255, 255, 255, 0.1);
  --line: rgba(255, 255, 255, 0.09);
  --accent: #2f6be4;
  position: absolute; top: 0; left: 0;
  width: 1180px; height: 740px;
  transform-origin: 0 0;
  border-radius: 22px; overflow: hidden;
  font: 13px/1.35 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  user-select: none; -webkit-user-select: none;
  cursor: default;
  text-align: left;
  box-shadow: 0 50px 120px -30px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.12);
  isolation: isolate;
}
.pt * { box-sizing: border-box; }
:where(.pt) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: default; text-align: left; }
:where(.pt) input { font: inherit; color: inherit; background: none; border: 0; outline: none; }
.pt .num { font-variant-numeric: tabular-nums; }
.pt .dim { color: var(--ink-2); }
.pt .faint { color: var(--ink-3); }

/* Wallpaper: the page's blurred colour, a little darker so windows sit on it. */
.pt-wall { position: absolute; inset: 0; z-index: -1; background: #1a1815; overflow: hidden; }
.pt-wall i { position: absolute; border-radius: 50%; filter: blur(70px); }
.pt-wall i:nth-child(1) { width: 640px; height: 520px; left: -120px; top: -140px; background: #4a4236; }
.pt-wall i:nth-child(2) { width: 600px; height: 560px; right: -160px; top: -60px; background: #2a2621; }
.pt-wall i:nth-child(3) { width: 680px; height: 420px; left: 220px; bottom: -200px; background: #3a342b; }
.pt-wall i:nth-child(4) { width: 420px; height: 380px; right: 80px; bottom: -120px; background: #221f1b; }
.pt-wall::after { content: ""; position: absolute; inset: 0; opacity: .55; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* Menu bar */
.pt-bar { position: absolute; top: 0; left: 0; right: 0; height: 30px; z-index: 50; display: flex; align-items: center;
          padding: 0 14px; gap: 18px; background: rgba(20, 20, 20, 0.35); backdrop-filter: blur(30px) saturate(1.6);
          -webkit-backdrop-filter: blur(30px) saturate(1.6); font-size: 13px; }
.pt-bar b { font-weight: 700; }
.pt-bar .menus { display: flex; gap: 18px; color: rgba(255, 255, 255, 0.92); }
.pt-bar .right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.pt-bar .item { display: flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 6px; }
.pt-bar .item.on, .pt-bar .item:hover { background: rgba(255, 255, 255, 0.18); }
.pt-bar .item { transition: transform .35s cubic-bezier(.34, 1.8, .5, 1); }
.pt-bar .item:active { transform: scale(.88); }
/* Until it's been opened once, the menu bar item hops now and then to say "click me". */
.pt-bar .item.attn { animation: pt-hop 3.2s cubic-bezier(.34, 1.6, .5, 1) 1.2s infinite; }
.pt-bar .item.attn::after { content: ""; position: absolute; inset: -3px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .5);
                            animation: pt-ring 3.2s ease-out 1.2s infinite; pointer-events: none; }
.pt-bar .item { position: relative; }
@keyframes pt-hop { 0%, 12%, 100% { transform: translateY(0); } 4% { transform: translateY(-5px) scale(1.06); } 8% { transform: translateY(1px) scale(.98); } }
@keyframes pt-ring { 0% { opacity: .9; transform: scale(.9); } 18%, 100% { opacity: 0; transform: scale(1.35); } }

/* Windows */
.pt-win { position: absolute; border-radius: 16px; overflow: hidden; background: #1d1d20;
          box-shadow: 0 30px 70px -10px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.1);
          transition: transform .35s cubic-bezier(.2, .8, .2, 1), filter .35s ease; }
.pt-lights { display: flex; gap: 8px; }
.pt-lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.pt-lights i:nth-child(2) { background: #febc2e; } .pt-lights i:nth-child(3) { background: #28c840; }

/* Paidtime's window */
.pt-main { left: 120px; top: 52px; width: 900px; height: 600px; display: flex; }
.pt-side { width: 236px; margin: 8px 0 8px 8px; border-radius: 12px; background: rgba(48, 48, 54, 0.72);
           border: 1px solid var(--line); display: flex; flex-direction: column; padding: 12px 10px 10px; }
.pt-side .rows { flex: 1; overflow: hidden; }
.pt-row { display: flex; align-items: center; gap: 9px; height: 30px; padding: 0 8px; border-radius: 8px; font-size: 13.5px; white-space: nowrap; }
.pt-row:hover { background: rgba(255, 255, 255, 0.05); }
.pt-row.sel { background: var(--accent); }
.pt-row .name { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.pt-row svg { flex: none; }
.pt-head { font-size: 11px; font-weight: 600; color: var(--ink-3); padding: 14px 8px 4px; }
.pt-sidebtns { display: flex; gap: 8px; }
.pt-glass { height: 34px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.1) !important;
            display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 12px !important; font-size: 13px; }
.pt-glass:hover { background: rgba(255, 255, 255, 0.12); }
.pt-glass.round { width: 34px; padding: 0 !important; }

.pt-detail { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.pt-tool { height: 52px; display: flex; align-items: center; gap: 8px; padding: 0 14px 0 20px; }
.pt-tool .title { font-size: 15px; font-weight: 700; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-scroll { flex: 1; overflow-y: auto; padding: 4px 24px 24px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.2) transparent; }
.pt-scroll > .col { max-width: 620px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.pt-card { background: rgba(255, 255, 255, 0.05); border-radius: 16px; padding: 16px; }
.pt-card.tight { padding: 4px; }

.pt-now { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 20px;
          background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); }
.pt-badge { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; background: rgba(255, 255, 255, 0.08); }
.pt-badge img { width: 26px; height: 26px; }
.pt-now .t { flex: 1; min-width: 0; }
.pt-now .t b { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-now .t span { color: var(--ink-2); font-size: 12.5px; }
.pt-clock { font: 600 22px/1 ui-rounded, -apple-system, system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.pt-clock.idle { color: var(--ink-2); }
.pt-filled { height: 32px; padding: 0 16px; border-radius: 999px; display: inline-flex; align-items: center; gap: 7px; font-weight: 500;
             background: linear-gradient(#f5f5f7, #d9d9de); color: #121214 !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.6); }
.pt-filled:active { transform: scale(.97); }
.pt-filled:disabled { opacity: .4; }
.pt-cap { height: 32px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; font-weight: 500;
          background: var(--fill-2); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.pt-cap:hover { background: rgba(255, 255, 255, 0.14); }
.pt-circle { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--fill-2); }
.pt-circle:hover { background: rgba(255, 255, 255, 0.16); }

.pt-strip { position: relative; height: 14px; border-radius: 7px; background: rgba(255, 255, 255, 0.06); }
.pt-strip i { position: absolute; top: 0; height: 14px; border-radius: 3px; }
.pt-striplab { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--ink-2); margin-top: 6px; }

.pt-big { font: 700 40px/1.05 ui-rounded, -apple-system, system-ui, sans-serif; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.pt-bars { display: flex; flex-direction: column; gap: 14px; }
.pt-bar-row { display: block; width: 100%; }
.pt-bar-row .l { display: flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.pt-bar-row .l .n { flex: 1; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-bar-row .l .m { min-width: 90px; text-align: right; font-weight: 500; }
.pt-bar-row .fill { height: 6px; border-radius: 3px; margin-top: 6px; transition: width .5s cubic-bezier(.2, .8, .2, 1); }
.pt-click { border-radius: 8px; }
.pt-click:hover { background: rgba(255, 255, 255, 0.03); }

.pt-day { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; color: var(--ink-2); margin: 0 2px 8px; }
.pt-sess { display: flex; align-items: center; gap: 12px; padding: 9px 12px; }
.pt-sess + .pt-sess { border-top: 1px solid var(--line); margin-left: 32px; padding-left: 0; }
.pt-sess + .pt-sess img { margin-left: 0; }
.pt-sess .w { flex: 1; min-width: 0; }
.pt-sess .w b { display: block; font-weight: 500; }
.pt-sess .w span { font-size: 11px; color: var(--ink-2); }

.pt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.pt-avatar { border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 600; flex: none;
             font-family: ui-rounded, -apple-system, system-ui, sans-serif; }
.pt-chart { display: flex; align-items: flex-end; gap: 6px; height: 140px; padding-top: 6px; }
.pt-chart div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; height: 100%; justify-content: flex-end; }
.pt-chart i { width: 100%; border-radius: 4px 4px 2px 2px; background: rgba(245, 245, 247, 0.78); min-height: 2px; transition: height .5s ease; }
.pt-chart span { font-size: 10px; color: var(--ink-2); }

.pt-setup { display: flex; align-items: center; gap: 12px; padding: 12px; }
.pt-setup + .pt-setup, .pt-setup-wrap + .pt-setup-wrap { border-top: 1px solid var(--line); }
.pt-setup .s { margin-left: auto; color: var(--ink-2); }
.pt-chev { transition: transform .25s ease; color: var(--ink-3); }
.pt-chev.open { transform: rotate(90deg); }
.pt-editor { padding: 2px 14px 16px 44px; display: flex; flex-direction: column; gap: 12px; }
.pt-seg { display: inline-flex; background: rgba(255, 255, 255, 0.08); border-radius: 8px; padding: 2px; align-self: flex-start; }
.pt-seg button { padding: 3px 12px; border-radius: 6px; font-size: 12.5px; }
.pt-seg button.on { background: rgba(255, 255, 255, 0.2); }
.pt-field { display: flex; align-items: center; justify-content: space-between; }
.pt-numfield { display: inline-flex; align-items: center; gap: 4px; background: rgba(255, 255, 255, 0.08); border-radius: 8px; padding: 4px 10px; }
.pt-numfield input { width: 64px; text-align: right; font-variant-numeric: tabular-nums; }
.pt-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--fill); }
.pt-chip img { width: 18px; height: 18px; }

/* Menus */
.pt-menuwrap { position: relative; }
.pt-menu { position: absolute; z-index: 80; min-width: 200px; padding: 5px; border-radius: 12px;
           background: rgba(44, 44, 50, 0.92); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
           border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
           animation: pt-pop .14s ease-out; }
.pt-menu.right { right: 0; } .pt-menu.up { bottom: calc(100% + 6px); } .pt-menu.down { top: calc(100% + 6px); }
.pt-menu button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 5px 10px; border-radius: 7px; text-align: left; white-space: nowrap; }
.pt-menu button:hover { background: var(--accent); }
.pt-menu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 6px; }
.pt-menu .label { padding: 4px 10px 2px; font-size: 11px; color: var(--ink-3); }
@keyframes pt-pop { from { opacity: 0; transform: scale(.97) translateY(-3px); } }

/* Menu bar panel */
.pt-panel { position: absolute; top: 34px; right: 120px; z-index: 70; width: 340px; padding: 14px; border-radius: 22px;
            display: flex; flex-direction: column; gap: 12px;
            background: rgba(38, 38, 44, 0.82); backdrop-filter: blur(36px) saturate(1.5); -webkit-backdrop-filter: blur(36px) saturate(1.5);
            border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); animation: pt-pop .16s ease-out; }

/* Prompt cards */
.pt-dim { position: absolute; inset: 0; z-index: 60; background: rgba(0, 0, 0, 0.4); animation: pt-fade .2s ease-out; }
@keyframes pt-fade { from { opacity: 0; } }
.pt-card-float { position: absolute; z-index: 61; left: 50%; top: 46%; width: 440px; transform: translate(-50%, -50%);
                 padding: 24px; border-radius: 28px; display: flex; flex-direction: column; gap: 18px;
                 background: rgba(40, 40, 46, 0.78); backdrop-filter: blur(40px) saturate(1.6); -webkit-backdrop-filter: blur(40px) saturate(1.6);
                 border: 1px solid rgba(255, 255, 255, 0.16); box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55);
                 animation: pt-in .3s cubic-bezier(.2, .8, .2, 1); }
@keyframes pt-in { from { opacity: 0; transform: translate(-50%, -50%) scale(.96); } }
.pt-card-float .hd { display: flex; gap: 14px; align-items: center; }
.pt-card-float .hd img { width: 52px; height: 52px; }
.pt-card-float .hd b { display: block; font-size: 16px; font-weight: 600; margin-bottom: 2px; }
.pt-card-float .stack { display: flex; flex-direction: column; gap: 8px; }
.pt-wide { width: 100%; height: 36px !important; justify-content: flex-start; }
.pt-wide .sp { flex: 1; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-table .r { display: flex; align-items: center; gap: 8px; padding: 7px 14px; font-variant-numeric: tabular-nums; }
.pt-table .r .n { flex: 1; }
.pt-table .r .a { width: 90px; text-align: right; } .pt-table .r .b { width: 70px; text-align: right; color: var(--ink-2); }

/* Dock */
.pt-dock { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); z-index: 55; display: flex; align-items: flex-end; gap: 6px;
           padding: 7px 9px; border-radius: 22px; background: rgba(255, 255, 255, 0.16);
           backdrop-filter: blur(30px) saturate(1.6); -webkit-backdrop-filter: blur(30px) saturate(1.6);
           border: 1px solid rgba(255, 255, 255, 0.22); }
.pt-dock .sep { width: 1px; height: 46px; background: rgba(255, 255, 255, 0.28); margin: 0 4px 2px; }
.pt-dockapp { position: relative; width: 50px; display: flex; flex-direction: column; align-items: center; }
.pt-dockapp img { width: 50px; height: 50px; transition: transform .18s cubic-bezier(.2, .8, .2, 1); transform-origin: 50% 100%; }
.pt-dockapp:hover img { transform: scale(1.22) translateY(-4px); }
.pt-dockapp.bounce img { animation: pt-bounce .7s ease 2; }
.pt-dockapp:active img { transform: scale(1.1) translateY(-2px); }
@keyframes pt-bounce { 30% { transform: translateY(-14px); } 60% { transform: translateY(0); } }
.pt-dockapp .run { width: 4px; height: 4px; border-radius: 50%; background: rgba(255, 255, 255, 0.85); margin-top: 3px; }
.pt-dockapp .run.off { background: transparent; }
.pt-dockapp .tip { position: absolute; bottom: calc(100% + 14px); left: 50%; transform: translateX(-50%); white-space: nowrap;
                   padding: 4px 10px; border-radius: 8px; background: rgba(40, 40, 46, 0.86); font-size: 12px; opacity: 0; pointer-events: none; transition: opacity .15s; }
.pt-dockapp:hover .tip { opacity: 1; }

.pt-toast { position: absolute; z-index: 90; left: 50%; bottom: 96px; transform: translateX(-50%); padding: 8px 14px; border-radius: 10px;
            background: rgba(30, 30, 34, 0.92); border: 1px solid rgba(255,255,255,.12); font-size: 12.5px; animation: pt-fade .2s ease-out; white-space: nowrap; }

.pt-wave { display: inline-flex; gap: 2px; align-items: center; height: 12px; }
.pt-wave i { width: 2px; border-radius: 1px; background: currentColor; animation: pt-wave 1s ease-in-out infinite; }
.pt-wave i:nth-child(2) { animation-delay: .15s; } .pt-wave i:nth-child(3) { animation-delay: .3s; } .pt-wave i:nth-child(4) { animation-delay: .45s; }
@keyframes pt-wave { 0%, 100% { height: 3px; } 50% { height: 12px; } }

.pt-speed { text-align: center; font-size: 12px; color: rgba(255,255,255,.55); margin-top: 10px; }
