/* PicassoTime -- the Leonardo time picker (Story 5744). See picasso-time.js. */

.pt-field {
    --pt-accent: #2F6FD6; --pt-tint: #EEF4FD;
    display: flex; align-items: center; gap: 8px;
    width: 100%; box-sizing: border-box; min-height: 38px;
    padding: 7px 10px; border: 1px solid #C9C9CC; border-radius: 6px;
    background: #fff; color: #222; font: inherit; font-size: 11pt; text-align: left; cursor: pointer;
}
.pt-field:hover { border-color: var(--pt-accent); }
.pt-field:focus-visible { outline: 2px solid var(--pt-accent); outline-offset: 1px; }
.pt-field .pt-icon { width: 18px; height: 18px; flex-shrink: 0; color: var(--pt-accent); }
.pt-field .pt-text { font-weight: 600; white-space: nowrap; }
.pt-field.pt-empty .pt-text { font-weight: 400; color: #888; }
.pt-field:disabled { opacity: 0.55; cursor: default; }

.pt-backdrop {
    position: fixed; inset: 0; z-index: 2000;
    background: rgba(0, 0, 0, 0.45);
    display: flex; align-items: center; justify-content: center;
    padding: 16px; box-sizing: border-box;
}
.pt-panel {
    --pt-accent: #2F6FD6; --pt-tint: #EEF4FD;
    width: 100%; max-width: 330px; max-height: 100%; overflow-y: auto;
    background: #fff; border-radius: 14px; box-sizing: border-box;
    padding: 14px 16px 14px; color: #222;
    border-top: 6px solid var(--pt-accent);
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.3);
}
.pt-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.pt-title { font-size: 12pt; font-weight: 600; }
.pt-preview { font-size: 10pt; color: var(--pt-accent); font-weight: 600; }

.pt-digital { display: flex; gap: 8px; align-items: stretch; }
.pt-typed {
    flex: 1; min-width: 0; box-sizing: border-box;
    font-size: 22pt; font-weight: 600; text-align: center; letter-spacing: 1px;
    padding: 4px 6px; border: 2px solid #D4D4D8; border-radius: 8px; color: #222;
    background: var(--pt-tint);
}
.pt-typed:focus { outline: none; border-color: var(--pt-accent); }
.pt-ampm { display: flex; flex-direction: column; gap: 4px; }
.pt-ampm button {
    flex: 1; min-width: 56px; border: 1px solid #C9C9CC; border-radius: 6px;
    background: #fff; color: #444; font-size: 10.5pt; font-weight: 600; cursor: pointer;
}
.pt-ampm button.on { background: var(--pt-accent); border-color: var(--pt-accent); color: #fff; }
.pt-err { color: #B3261E; font-size: 10pt; min-height: 0; margin-top: 4px; }
.pt-err:empty { display: none; }

.pt-clock-holder { display: flex; justify-content: center; margin: 10px 0 2px; }
.pt-clock { width: 100%; max-width: 250px; height: auto; touch-action: none; user-select: none; -webkit-user-select: none; cursor: pointer; }
.pt-face { fill: var(--pt-tint); stroke: var(--pt-accent); stroke-width: 2; }
.pt-tick { stroke: #9A9AA0; stroke-width: 1; }
.pt-tick.big { stroke: #555; stroke-width: 2.2; }
.pt-num { font-size: 19px; font-weight: 600; fill: #333; text-anchor: middle; pointer-events: none; }
.pt-num.on { fill: var(--pt-accent); font-size: 22px; }
.pt-hand { stroke-linecap: round; pointer-events: none; }
.pt-hand.hour { stroke: #2B2B2E; stroke-width: 7; }
.pt-hand.minute { stroke: var(--pt-accent); stroke-width: 4; }
.pt-knob { cursor: grab; }
.pt-knob.hour { fill: #2B2B2E; }
.pt-knob.minute { fill: var(--pt-accent); }
.pt-clock.dragging-hour .pt-knob.hour,
.pt-clock.dragging-minute .pt-knob.minute { stroke: #fff; stroke-width: 3; }
.pt-hub { fill: #2B2B2E; pointer-events: none; }
.pt-hint { font-size: 9.5pt; color: #777; text-align: center; margin-bottom: 8px; }

.pt-colors { display: flex; justify-content: center; gap: 8px; margin-bottom: 12px; }
.pt-dot {
    width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; padding: 0; cursor: pointer;
    box-shadow: 0 0 0 1px #C9C9CC;
}
.pt-dot.on { box-shadow: 0 0 0 2px #222; }

.pt-actions { display: flex; align-items: center; gap: 8px; }
.pt-gap { flex: 1; }
.pt-actions button {
    padding: 8px 14px; border-radius: 6px; border: 1px solid #C9C9CC; background: #fff;
    font-size: 10.5pt; cursor: pointer; color: #333;
}
.pt-actions .pt-set { background: var(--pt-accent); border-color: var(--pt-accent); color: #fff; font-weight: 600; min-width: 70px; }
.pt-actions .pt-clear { color: #8A2A20; }
