Spaces:
Sleeping
Sleeping
Add Microsoft Entra ID login + ember dark theme
Browse files- Gate the whole app behind Streamlit native OIDC sign-in (auth_gate.py),
reusing the existing Azure App Registration. Auth config lives in a
gitignored .streamlit/secrets.toml locally, and is built at container
start from HF Space secrets by entrypoint.sh.
- Retheme to a black + burnt-orange ember palette across the login pass,
hero, stepper, cards, inputs and buttons (+ config.toml).
- requirements: streamlit>=1.42, add Authlib.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
- .gitattributes +3 -0
- .gitignore +3 -0
- .streamlit/config.toml +4 -4
- .streamlit/secrets.toml.template +21 -0
- Dockerfile +2 -2
- README.md +24 -0
- auth_gate.py +230 -0
- entrypoint.sh +32 -0
- requirements.txt +2 -1
- streamlit_app.py +187 -166
.gitattributes
CHANGED
|
@@ -35,3 +35,6 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
templates/*.docx filter=lfs diff=lfs merge=lfs -text
|
| 37 |
assets/*.png filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
templates/*.docx filter=lfs diff=lfs merge=lfs -text
|
| 37 |
assets/*.png filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
|
| 39 |
+
# Shell scripts must keep LF endings so bash runs them on Linux (HF Spaces)
|
| 40 |
+
*.sh text eol=lf
|
.gitignore
CHANGED
|
@@ -7,6 +7,9 @@ config.ini
|
|
| 7 |
.env
|
| 8 |
.env.*
|
| 9 |
|
|
|
|
|
|
|
|
|
|
| 10 |
# =============================================================================
|
| 11 |
# Generated output (docx files ΰΈͺΰΈ£ΰΉΰΈ²ΰΈΰΈΰΈ²ΰΈ app)
|
| 12 |
# =============================================================================
|
|
|
|
| 7 |
.env
|
| 8 |
.env.*
|
| 9 |
|
| 10 |
+
# Streamlit native-auth secrets (client secret, cookie secret) β never commit
|
| 11 |
+
.streamlit/secrets.toml
|
| 12 |
+
|
| 13 |
# =============================================================================
|
| 14 |
# Generated output (docx files ΰΈͺΰΈ£ΰΉΰΈ²ΰΈΰΈΰΈ²ΰΈ app)
|
| 15 |
# =============================================================================
|
.streamlit/config.toml
CHANGED
|
@@ -1,9 +1,9 @@
|
|
| 1 |
[theme]
|
| 2 |
base = "dark"
|
| 3 |
-
primaryColor = "#
|
| 4 |
-
backgroundColor = "#
|
| 5 |
-
secondaryBackgroundColor = "#
|
| 6 |
-
textColor = "#
|
| 7 |
font = "sans serif"
|
| 8 |
|
| 9 |
[server]
|
|
|
|
| 1 |
[theme]
|
| 2 |
base = "dark"
|
| 3 |
+
primaryColor = "#F26A3A"
|
| 4 |
+
backgroundColor = "#000000"
|
| 5 |
+
secondaryBackgroundColor = "#161412"
|
| 6 |
+
textColor = "#F5F3F1"
|
| 7 |
font = "sans serif"
|
| 8 |
|
| 9 |
[server]
|
.streamlit/secrets.toml.template
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# =============================================================================
|
| 2 |
+
# Streamlit native-auth (OIDC) β Microsoft Entra ID
|
| 3 |
+
# Copy this file to ".streamlit/secrets.toml" and fill in the real values.
|
| 4 |
+
# secrets.toml is gitignored (it carries the client secret + cookie secret).
|
| 5 |
+
# =============================================================================
|
| 6 |
+
[auth]
|
| 7 |
+
# Streamlit's OIDC callback path is always "/oauth2callback".
|
| 8 |
+
# Register this exact URI in Azure β App registration β Authentication β
|
| 9 |
+
# Web β Redirect URIs. For local dev that is the line below; for a deployed
|
| 10 |
+
# app use "https://<your-host>/oauth2callback".
|
| 11 |
+
redirect_uri = "http://localhost:8501/oauth2callback"
|
| 12 |
+
|
| 13 |
+
# Any long random string. Generate with:
|
| 14 |
+
# python -c "import secrets; print(secrets.token_hex(32))"
|
| 15 |
+
cookie_secret = "CHANGE_ME_RANDOM_HEX"
|
| 16 |
+
|
| 17 |
+
client_id = "<AZURE_APP_CLIENT_ID>"
|
| 18 |
+
client_secret = "<AZURE_APP_CLIENT_SECRET>"
|
| 19 |
+
|
| 20 |
+
# Replace <TENANT_ID> with your Entra tenant id.
|
| 21 |
+
server_metadata_url = "https://login.microsoftonline.com/<TENANT_ID>/v2.0/.well-known/openid-configuration"
|
Dockerfile
CHANGED
|
@@ -37,5 +37,5 @@ ENV HOME=/home/user \
|
|
| 37 |
# Expose port
|
| 38 |
EXPOSE 7860
|
| 39 |
|
| 40 |
-
#
|
| 41 |
-
CMD ["
|
|
|
|
| 37 |
# Expose port
|
| 38 |
EXPOSE 7860
|
| 39 |
|
| 40 |
+
# Entrypoint builds .streamlit/secrets.toml from Space secrets, then runs Streamlit
|
| 41 |
+
CMD ["bash", "entrypoint.sh"]
|
README.md
CHANGED
|
@@ -42,6 +42,30 @@ streamlit run streamlit_app.py
|
|
| 42 |
|
| 43 |
ΰΉΰΈΰΈ΄ΰΈΰΉΰΈΰΈ£ΰΈ²ΰΈ§ΰΉΰΉΰΈΰΈΰΈ£ΰΉΰΈΰΈ΅ΰΉ http://localhost:8501
|
| 44 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 45 |
## π Project Structure
|
| 46 |
|
| 47 |
```
|
|
|
|
| 42 |
|
| 43 |
ΰΉΰΈΰΈ΄ΰΈΰΉΰΈΰΈ£ΰΈ²ΰΈ§ΰΉΰΉΰΈΰΈΰΈ£ΰΉΰΈΰΈ΅ΰΉ http://localhost:8501
|
| 44 |
|
| 45 |
+
## π Authentication (Microsoft Entra ID)
|
| 46 |
+
|
| 47 |
+
The app is gated behind Microsoft sign-in using Streamlit's native OIDC auth
|
| 48 |
+
(`st.login`). It reuses an existing Azure App Registration.
|
| 49 |
+
|
| 50 |
+
**Local:** copy `.streamlit/secrets.toml.template` to `.streamlit/secrets.toml`
|
| 51 |
+
and fill in the values (this file is gitignored). Register
|
| 52 |
+
`http://localhost:8501/oauth2callback` as a **Web** redirect URI in Azure.
|
| 53 |
+
|
| 54 |
+
**Hugging Face Spaces:** `secrets.toml` is built at startup by `entrypoint.sh`
|
| 55 |
+
from these Space secrets β set them in *Settings β Variables and secrets*:
|
| 56 |
+
|
| 57 |
+
| Secret | Value |
|
| 58 |
+
| --- | --- |
|
| 59 |
+
| `AUTH_CLIENT_ID` | Azure app (client) id |
|
| 60 |
+
| `AUTH_CLIENT_SECRET` | Azure client secret |
|
| 61 |
+
| `AUTH_COOKIE_SECRET` | any long random hex string |
|
| 62 |
+
| `AUTH_REDIRECT_URI` | `https://<space-host>/oauth2callback` |
|
| 63 |
+
| `AUTH_SERVER_METADATA_URL` | `https://login.microsoftonline.com/<tenant>/v2.0/.well-known/openid-configuration` |
|
| 64 |
+
|
| 65 |
+
Register the same `https://<space-host>/oauth2callback` as a **Web** redirect
|
| 66 |
+
URI in Azure. Sign-in stays broken until both the Space secrets and the Azure
|
| 67 |
+
redirect URI are in place.
|
| 68 |
+
|
| 69 |
## π Project Structure
|
| 70 |
|
| 71 |
```
|
auth_gate.py
ADDED
|
@@ -0,0 +1,230 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# -*- coding: utf-8 -*-
|
| 2 |
+
"""Microsoft Entra ID sign-in gate using Streamlit's native OIDC auth.
|
| 3 |
+
|
| 4 |
+
Replaces the Flask `@login_required` / identity.web flow from the PTT-SIGN-IN
|
| 5 |
+
app. Reuses the same Azure App Registration, configured in
|
| 6 |
+
`.streamlit/secrets.toml` under the [auth] table. Requires Streamlit >= 1.42.
|
| 7 |
+
"""
|
| 8 |
+
from __future__ import annotations
|
| 9 |
+
|
| 10 |
+
import streamlit as st
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
# Self-contained styling for the login "access pass". Inherits the app's fonts
|
| 14 |
+
# and page gradient; defines its own card so the screen reads as one intentional
|
| 15 |
+
# object rather than a button on a panel.
|
| 16 |
+
_LOGIN_CSS = """
|
| 17 |
+
<style>
|
| 18 |
+
/* The keyed container IS the pass card */
|
| 19 |
+
.st-key-login_card {
|
| 20 |
+
width: 100% !important;
|
| 21 |
+
max-width: 430px !important;
|
| 22 |
+
margin: clamp(2rem, 9vh, 6rem) auto 0 !important;
|
| 23 |
+
padding: 0 !important;
|
| 24 |
+
gap: 0 !important;
|
| 25 |
+
background: linear-gradient(180deg, #161412 0%, #100D0B 100%) !important;
|
| 26 |
+
border: 1px solid rgba(255, 255, 255, 0.10) !important;
|
| 27 |
+
border-radius: 26px !important;
|
| 28 |
+
overflow: hidden !important;
|
| 29 |
+
box-shadow:
|
| 30 |
+
0 24px 60px rgba(0, 0, 0, 0.45),
|
| 31 |
+
inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
|
| 32 |
+
animation: loginRise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
|
| 33 |
+
}
|
| 34 |
+
|
| 35 |
+
/* ββ Header stub: gradient band + perforated tear-line + punched notches ββ */
|
| 36 |
+
.login-stub {
|
| 37 |
+
position: relative;
|
| 38 |
+
background: linear-gradient(120deg, #F26A3A 0%, #E85D27 100%);
|
| 39 |
+
padding: 1.5rem 1.7rem 1.7rem;
|
| 40 |
+
text-align: center;
|
| 41 |
+
color: #fff;
|
| 42 |
+
}
|
| 43 |
+
.login-eyebrow {
|
| 44 |
+
font-size: 0.62rem; font-weight: 700; letter-spacing: 0.18em;
|
| 45 |
+
text-transform: uppercase; color: rgba(255, 255, 255, 0.82);
|
| 46 |
+
margin-bottom: 0.5rem;
|
| 47 |
+
}
|
| 48 |
+
.login-wordmark {
|
| 49 |
+
font-family: 'Inter', sans-serif;
|
| 50 |
+
font-size: 1.7rem; font-weight: 800; letter-spacing: -0.01em;
|
| 51 |
+
line-height: 1; color: #fff;
|
| 52 |
+
text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
|
| 53 |
+
}
|
| 54 |
+
.login-perf {
|
| 55 |
+
position: absolute; left: 18px; right: 18px; bottom: -1px; height: 3px;
|
| 56 |
+
background-image: repeating-linear-gradient(to right,
|
| 57 |
+
rgba(255, 255, 255, 0.55) 0, rgba(255, 255, 255, 0.55) 9px,
|
| 58 |
+
transparent 9px, transparent 18px);
|
| 59 |
+
}
|
| 60 |
+
/* Notches sit on the tear-line; the card's overflow:hidden clips their outer
|
| 61 |
+
half β a clean semicircle bite on each edge. Coloured as the body top so
|
| 62 |
+
they read as holes punched out of the stub. */
|
| 63 |
+
.login-notch {
|
| 64 |
+
position: absolute; bottom: -11px; width: 22px; height: 22px;
|
| 65 |
+
border-radius: 50%; background: #141110;
|
| 66 |
+
}
|
| 67 |
+
.login-notch-l { left: -11px; }
|
| 68 |
+
.login-notch-r { right: -11px; }
|
| 69 |
+
|
| 70 |
+
/* ββ Body ββ */
|
| 71 |
+
.login-body { padding: 1.8rem 1.7rem 1rem; text-align: center; }
|
| 72 |
+
.login-lock {
|
| 73 |
+
width: 58px; height: 58px; border-radius: 17px; margin: 0 auto 0.95rem;
|
| 74 |
+
display: flex; align-items: center; justify-content: center;
|
| 75 |
+
background: linear-gradient(135deg, #F26A3A 0%, #E8915E 100%);
|
| 76 |
+
border: 2px solid rgba(255, 255, 255, 0.10);
|
| 77 |
+
box-shadow: 0 8px 20px rgba(242, 106, 58, 0.40);
|
| 78 |
+
animation: loginPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s both;
|
| 79 |
+
}
|
| 80 |
+
.login-title {
|
| 81 |
+
font-size: 1.55rem; font-weight: 800; color: #F5F3F1;
|
| 82 |
+
margin: 0 0 0.4rem; letter-spacing: -0.01em;
|
| 83 |
+
}
|
| 84 |
+
.login-sub {
|
| 85 |
+
font-size: 0.92rem; line-height: 1.6; margin: 0;
|
| 86 |
+
color: #9A8F86 !important;
|
| 87 |
+
}
|
| 88 |
+
|
| 89 |
+
/* ββ CTA button: give it side gutters since the card has no padding ββ */
|
| 90 |
+
.st-key-login_card [data-testid="stButton"] { padding: 0.5rem 1.7rem 0.15rem; }
|
| 91 |
+
|
| 92 |
+
/* ββ Footer security lockup ββ */
|
| 93 |
+
.login-foot {
|
| 94 |
+
display: flex; flex-direction: column; align-items: center; gap: 0.3rem;
|
| 95 |
+
padding: 0.7rem 1.4rem 1.6rem; text-align: center;
|
| 96 |
+
}
|
| 97 |
+
.login-foot-ms {
|
| 98 |
+
display: inline-flex; align-items: center; gap: 0.42rem;
|
| 99 |
+
font-size: 0.74rem; font-weight: 600;
|
| 100 |
+
color: #A89C92 !important;
|
| 101 |
+
}
|
| 102 |
+
.login-foot-note { font-size: 0.68rem; color: #7C726A !important; }
|
| 103 |
+
|
| 104 |
+
@keyframes loginRise {
|
| 105 |
+
from { opacity: 0; transform: translateY(22px) scale(0.985); }
|
| 106 |
+
to { opacity: 1; transform: none; }
|
| 107 |
+
}
|
| 108 |
+
@keyframes loginPop {
|
| 109 |
+
0% { transform: scale(0.4); opacity: 0; }
|
| 110 |
+
60% { transform: scale(1.15); opacity: 1; }
|
| 111 |
+
100% { transform: scale(1); }
|
| 112 |
+
}
|
| 113 |
+
@media (prefers-reduced-motion: reduce) {
|
| 114 |
+
.st-key-login_card, .login-lock { animation: none !important; }
|
| 115 |
+
}
|
| 116 |
+
</style>
|
| 117 |
+
"""
|
| 118 |
+
|
| 119 |
+
|
| 120 |
+
def _is_logged_in() -> bool:
|
| 121 |
+
try:
|
| 122 |
+
return bool(st.user.is_logged_in)
|
| 123 |
+
except Exception:
|
| 124 |
+
# st.user raises if [auth] is missing/misconfigured in secrets.toml.
|
| 125 |
+
return False
|
| 126 |
+
|
| 127 |
+
|
| 128 |
+
def require_login() -> None:
|
| 129 |
+
"""Block the app until the user signs in with their PTT (Entra) account.
|
| 130 |
+
|
| 131 |
+
Call once, right after the page CSS is injected and before any app content.
|
| 132 |
+
Renders a themed sign-in screen and st.stop()s when the user is not
|
| 133 |
+
authenticated; returns normally once they are.
|
| 134 |
+
"""
|
| 135 |
+
if _is_logged_in():
|
| 136 |
+
return
|
| 137 |
+
|
| 138 |
+
# ββ Login screen ββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 139 |
+
# Signature element: an "access pass" β a ticket card echoing the app's hero,
|
| 140 |
+
# with a gradient stub, a perforated tear-line, and two punched notches. You
|
| 141 |
+
# present a pass to enter the document system. Everything else stays quiet.
|
| 142 |
+
st.markdown(_LOGIN_CSS, unsafe_allow_html=True)
|
| 143 |
+
|
| 144 |
+
with st.container(key="login_card"):
|
| 145 |
+
st.markdown(
|
| 146 |
+
"""
|
| 147 |
+
<div class="login-stub">
|
| 148 |
+
<div class="login-eyebrow">ΰΈ£ΰΈ°ΰΈΰΈΰΈͺΰΈ£ΰΉΰΈ²ΰΈΰΉΰΈΰΈΰΈͺΰΈ²ΰΈ£ΰΈΰΈ±ΰΈΰΈΰΈ·ΰΉΰΈΰΈΰΈ±ΰΈΰΈΰΉΰΈ²ΰΈ</div>
|
| 149 |
+
<div class="login-wordmark">PTT Auto Form</div>
|
| 150 |
+
<div class="login-perf"></div>
|
| 151 |
+
<span class="login-notch login-notch-l"></span>
|
| 152 |
+
<span class="login-notch login-notch-r"></span>
|
| 153 |
+
</div>
|
| 154 |
+
<div class="login-body">
|
| 155 |
+
<div class="login-lock">
|
| 156 |
+
<svg width="26" height="26" viewBox="0 0 24 24" fill="none"
|
| 157 |
+
stroke="#fff" stroke-width="2" stroke-linecap="round"
|
| 158 |
+
stroke-linejoin="round" aria-hidden="true">
|
| 159 |
+
<rect x="4" y="11" width="16" height="9" rx="2"></rect>
|
| 160 |
+
<path d="M8 11V8a4 4 0 0 1 8 0v3"></path>
|
| 161 |
+
</svg>
|
| 162 |
+
</div>
|
| 163 |
+
<div class="login-title">ΰΉΰΈΰΉΰΈ²ΰΈͺΰΈΉΰΉΰΈ£ΰΈ°ΰΈΰΈ</div>
|
| 164 |
+
<p class="login-sub">
|
| 165 |
+
ΰΈ₯ΰΈΰΈΰΈ·ΰΉΰΈΰΉΰΈΰΉΰΈ²ΰΉΰΈΰΉΰΈΰΉΰΈ§ΰΈ’ΰΈΰΈ±ΰΈΰΈΰΈ΅ PTT<br>
|
| 166 |
+
ΰΉΰΈΰΈ·ΰΉΰΈΰΈͺΰΈ£ΰΉΰΈ²ΰΈΰΉΰΈ₯ΰΈ°ΰΈΰΈ²ΰΈ§ΰΈΰΉΰΉΰΈ«ΰΈ₯ΰΈΰΉΰΈΰΈΰΈͺΰΈ²ΰΈ£
|
| 167 |
+
</p>
|
| 168 |
+
</div>
|
| 169 |
+
""",
|
| 170 |
+
unsafe_allow_html=True,
|
| 171 |
+
)
|
| 172 |
+
|
| 173 |
+
if st.button(":material/login: ΰΉΰΈΰΉΰΈ²ΰΈͺΰΈΉΰΉΰΈ£ΰΈ°ΰΈΰΈΰΈΰΉΰΈ§ΰΈ’ Microsoft",
|
| 174 |
+
type="primary", use_container_width=True):
|
| 175 |
+
st.login()
|
| 176 |
+
|
| 177 |
+
st.markdown(
|
| 178 |
+
"""
|
| 179 |
+
<div class="login-foot">
|
| 180 |
+
<div class="login-foot-ms">
|
| 181 |
+
<svg width="15" height="15" viewBox="0 0 23 23" aria-hidden="true">
|
| 182 |
+
<rect width="10" height="10" x="1" y="1" fill="#F25022"></rect>
|
| 183 |
+
<rect width="10" height="10" x="12" y="1" fill="#7FBA00"></rect>
|
| 184 |
+
<rect width="10" height="10" x="1" y="12" fill="#00A4EF"></rect>
|
| 185 |
+
<rect width="10" height="10" x="12" y="12" fill="#FFB900"></rect>
|
| 186 |
+
</svg>
|
| 187 |
+
<span>ΰΈΰΈ₯ΰΈΰΈΰΈ ΰΈ±ΰΈ’ΰΈΰΉΰΈ§ΰΈ’ Microsoft Entra ID</span>
|
| 188 |
+
</div>
|
| 189 |
+
<div class="login-foot-note">ΰΉΰΈΰΈΰΈ²ΰΈ°ΰΈΰΈ±ΰΈΰΈΰΈ΅ΰΈΰΈΰΈΰΉΰΈΰΈ£ΰΈΰΈ΅ΰΉΰΉΰΈΰΉΰΈ£ΰΈ±ΰΈΰΈΰΈΰΈΈΰΈΰΈ²ΰΈ</div>
|
| 190 |
+
</div>
|
| 191 |
+
""",
|
| 192 |
+
unsafe_allow_html=True,
|
| 193 |
+
)
|
| 194 |
+
|
| 195 |
+
st.stop()
|
| 196 |
+
|
| 197 |
+
|
| 198 |
+
def render_topbar() -> None:
|
| 199 |
+
"""Show the signed-in user + a logout button, stripped of the card chrome
|
| 200 |
+
that the app's CSS applies to top-level columns."""
|
| 201 |
+
st.markdown(
|
| 202 |
+
"""
|
| 203 |
+
<style>
|
| 204 |
+
/* Strip the panel styling from this one row's columns */
|
| 205 |
+
.st-key-auth_topbar [data-testid="stColumn"] {
|
| 206 |
+
background: transparent !important;
|
| 207 |
+
border: none !important;
|
| 208 |
+
box-shadow: none !important;
|
| 209 |
+
padding: 0 !important;
|
| 210 |
+
}
|
| 211 |
+
.auth-userchip {
|
| 212 |
+
display: inline-flex; align-items: center; gap: 0.45rem;
|
| 213 |
+
color: #CBC4BD; font-size: 0.9rem; font-weight: 600;
|
| 214 |
+
}
|
| 215 |
+
</style>
|
| 216 |
+
""",
|
| 217 |
+
unsafe_allow_html=True,
|
| 218 |
+
)
|
| 219 |
+
with st.container(key="auth_topbar"):
|
| 220 |
+
c1, c2 = st.columns([7, 2], vertical_alignment="center")
|
| 221 |
+
with c1:
|
| 222 |
+
name = (getattr(st.user, "name", None)
|
| 223 |
+
or getattr(st.user, "email", "")
|
| 224 |
+
or "ΰΈΰΈΉΰΉΰΉΰΈΰΉΰΈΰΈ²ΰΈ")
|
| 225 |
+
st.markdown(f"<div class='auth-userchip'>π€ {name}</div>",
|
| 226 |
+
unsafe_allow_html=True)
|
| 227 |
+
with c2:
|
| 228 |
+
if st.button("ΰΈΰΈΰΈΰΈΰΈ²ΰΈΰΈ£ΰΈ°ΰΈΰΈ", type="secondary",
|
| 229 |
+
use_container_width=True, key="auth_logout_btn"):
|
| 230 |
+
st.logout()
|
entrypoint.sh
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
# =============================================================================
|
| 3 |
+
# Container entrypoint (Hugging Face Spaces / Docker).
|
| 4 |
+
#
|
| 5 |
+
# Streamlit native auth reads its [auth] config from .streamlit/secrets.toml,
|
| 6 |
+
# which is gitignored (it holds the client secret). On HF there's no such file,
|
| 7 |
+
# so we materialise it here from Space secrets (injected as env vars) before
|
| 8 |
+
# launching Streamlit. Local dev doesn't use this script β it runs
|
| 9 |
+
# `streamlit run` directly against the local .streamlit/secrets.toml.
|
| 10 |
+
#
|
| 11 |
+
# Required HF Space secrets/variables:
|
| 12 |
+
# AUTH_CLIENT_ID, AUTH_CLIENT_SECRET, AUTH_COOKIE_SECRET,
|
| 13 |
+
# AUTH_REDIRECT_URI, AUTH_SERVER_METADATA_URL
|
| 14 |
+
# =============================================================================
|
| 15 |
+
set -e
|
| 16 |
+
|
| 17 |
+
if [ -n "$AUTH_CLIENT_ID" ]; then
|
| 18 |
+
mkdir -p .streamlit
|
| 19 |
+
cat > .streamlit/secrets.toml <<EOF
|
| 20 |
+
[auth]
|
| 21 |
+
redirect_uri = "${AUTH_REDIRECT_URI}"
|
| 22 |
+
cookie_secret = "${AUTH_COOKIE_SECRET}"
|
| 23 |
+
client_id = "${AUTH_CLIENT_ID}"
|
| 24 |
+
client_secret = "${AUTH_CLIENT_SECRET}"
|
| 25 |
+
server_metadata_url = "${AUTH_SERVER_METADATA_URL}"
|
| 26 |
+
EOF
|
| 27 |
+
echo "[entrypoint] wrote .streamlit/secrets.toml from Space secrets"
|
| 28 |
+
else
|
| 29 |
+
echo "[entrypoint] WARNING: AUTH_CLIENT_ID not set β sign-in will not work until the Space secrets are configured"
|
| 30 |
+
fi
|
| 31 |
+
|
| 32 |
+
exec streamlit run streamlit_app.py --server.port "${PORT:-7860}" --server.address 0.0.0.0
|
requirements.txt
CHANGED
|
@@ -1,4 +1,5 @@
|
|
| 1 |
python-docx>=1.0.0
|
| 2 |
openpyxl>=3.1.0
|
| 3 |
-
streamlit>=1.
|
| 4 |
huggingface_hub>=0.20.0
|
|
|
|
|
|
| 1 |
python-docx>=1.0.0
|
| 2 |
openpyxl>=3.1.0
|
| 3 |
+
streamlit>=1.42.0
|
| 4 |
huggingface_hub>=0.20.0
|
| 5 |
+
Authlib>=1.3.2
|
streamlit_app.py
CHANGED
|
@@ -1,11 +1,11 @@
|
|
| 1 |
# -*- coding: utf-8 -*-
|
| 2 |
"""
|
| 3 |
-
ΰΈ£ΰΈ°ΰΈΰΈΰΈͺΰΈ£ΰΉΰΈ²ΰΈΰΉΰΈΰΈΰΈͺΰΈ²ΰΈ£ΰΈΰΈ±ΰΈΰΉΰΈΰΈ‘ΰΈ±ΰΈΰΈ΄ -
|
| 4 |
====================================================
|
| 5 |
-
-
|
| 6 |
- No sidebar β full-width main content
|
| 7 |
- Compact inline data source picker
|
| 8 |
-
- Glassmorphism
|
| 9 |
"""
|
| 10 |
|
| 11 |
import os
|
|
@@ -25,6 +25,7 @@ from form_logic import (
|
|
| 25 |
DOC_TYPE_OPTIONS,
|
| 26 |
DISPLAY_FIELDS,
|
| 27 |
)
|
|
|
|
| 28 |
|
| 29 |
|
| 30 |
# =============================================================================
|
|
@@ -135,29 +136,29 @@ st.set_page_config(
|
|
| 135 |
|
| 136 |
|
| 137 |
# =============================================================================
|
| 138 |
-
#
|
| 139 |
# =============================================================================
|
| 140 |
st.markdown("""
|
| 141 |
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Sarabun:wght@400;500;600;700&display=swap" rel="stylesheet">
|
| 142 |
|
| 143 |
<style>
|
| 144 |
/* βββ COLORS βββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 145 |
-
Page bg : #
|
| 146 |
-
Card surface : #
|
| 147 |
-
Field bg : #
|
| 148 |
-
Text primary : #
|
| 149 |
-
Text label : #
|
| 150 |
-
Text muted : #
|
| 151 |
-
Primary action: linear-gradient #
|
| 152 |
-
Accent
|
| 153 |
-
|
| 154 |
Border : rgba(255, 255, 255, 0.08)
|
| 155 |
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
|
| 156 |
|
| 157 |
/* GLOBAL */
|
| 158 |
html, body, [class*="css"], .stApp {
|
| 159 |
font-family: 'Inter', 'Sarabun', -apple-system, BlinkMacSystemFont, sans-serif !important;
|
| 160 |
-
color: #
|
| 161 |
}
|
| 162 |
|
| 163 |
/* Page background β soft warm linen with a faint coral glow */
|
|
@@ -167,26 +168,34 @@ st.markdown("""
|
|
| 167 |
below it.) */
|
| 168 |
html {
|
| 169 |
background:
|
| 170 |
-
radial-gradient(at 18% 8%, rgba(
|
| 171 |
-
radial-gradient(at 85% 92%, rgba(
|
| 172 |
-
linear-gradient(180deg, #
|
| 173 |
background-attachment: fixed !important;
|
|
|
|
|
|
|
|
|
|
|
|
|
| 174 |
}
|
| 175 |
.stApp { background: transparent !important; }
|
|
|
|
|
|
|
|
|
|
|
|
|
| 176 |
|
| 177 |
/* Slim, theme-matched scrollbar. No scrollbar-gutter reservation β that left
|
| 178 |
an empty gutter on the non-scrolling edge which painted with the native
|
| 179 |
white track color (unreachable by ::-webkit-scrollbar-track), showing as a
|
| 180 |
white bar. Just a normal right scrollbar with a transparent track + soft
|
| 181 |
coral thumb, so there is no white bar on either side. */
|
| 182 |
-
html { scrollbar-color: rgba(
|
| 183 |
::-webkit-scrollbar { width: 10px; height: 10px; }
|
| 184 |
::-webkit-scrollbar-track { background: transparent; }
|
| 185 |
::-webkit-scrollbar-thumb {
|
| 186 |
-
background: rgba(
|
| 187 |
border-radius: 8px;
|
| 188 |
}
|
| 189 |
-
::-webkit-scrollbar-thumb:hover { background: rgba(
|
| 190 |
|
| 191 |
/* Hide Streamlit chrome */
|
| 192 |
[data-testid="stToolbar"] { visibility: hidden; height: 0; position: fixed; }
|
|
@@ -244,8 +253,8 @@ st.markdown("""
|
|
| 244 |
to { opacity: 1; transform: translateY(0); }
|
| 245 |
}
|
| 246 |
@keyframes pulse {
|
| 247 |
-
0%, 100% { box-shadow: 0 0 0 0 rgba(
|
| 248 |
-
50% { box-shadow: 0 0 0 7px rgba(
|
| 249 |
}
|
| 250 |
@keyframes blob {
|
| 251 |
0%, 100% { transform: translate(0, 0) scale(1); }
|
|
@@ -272,40 +281,44 @@ st.markdown("""
|
|
| 272 |
}
|
| 273 |
|
| 274 |
/* βββ HERO βββββββββββββββββββββββββββββββββββββββββββββββββββββ */
|
| 275 |
-
/*
|
| 276 |
-
|
| 277 |
-
colour-matching seam. Both mask layers are intersected so each circle
|
| 278 |
-
becomes a hole (default "add" would cancel them out). */
|
| 279 |
.hero {
|
| 280 |
position: relative;
|
| 281 |
-
background:
|
| 282 |
-
|
|
|
|
|
|
|
|
|
|
| 283 |
border-radius: 24px;
|
| 284 |
color: #FFFFFF;
|
| 285 |
margin-bottom: 2rem;
|
| 286 |
overflow: hidden;
|
| 287 |
-
box-shadow: 0
|
| 288 |
-
-webkit-mask:
|
| 289 |
-
radial-gradient(circle 15px at 0 56px, transparent 15px, #000 15.5px),
|
| 290 |
-
radial-gradient(circle 15px at 100% 56px, transparent 15px, #000 15.5px);
|
| 291 |
-
-webkit-mask-composite: source-in;
|
| 292 |
-
mask:
|
| 293 |
-
radial-gradient(circle 15px at 0 56px, transparent 15px, #000 15.5px),
|
| 294 |
-
radial-gradient(circle 15px at 100% 56px, transparent 15px, #000 15.5px);
|
| 295 |
-
mask-composite: intersect;
|
| 296 |
animation: fadeInUp 0.6s ease;
|
| 297 |
}
|
| 298 |
-
/*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 299 |
.hero-pattern {
|
| 300 |
position: absolute;
|
| 301 |
-
|
| 302 |
-
|
| 303 |
-
|
| 304 |
-
|
| 305 |
-
background-
|
| 306 |
-
|
| 307 |
-
|
| 308 |
pointer-events: none;
|
|
|
|
| 309 |
}
|
| 310 |
.hero-content { position: relative; z-index: 2; text-align: left; }
|
| 311 |
.hero-badge {
|
|
@@ -346,7 +359,7 @@ st.markdown("""
|
|
| 346 |
}
|
| 347 |
/* βββ STEPS ββββββββββββββββββββββββββββββββββββββββββββββββββββ */
|
| 348 |
.steps-wrapper {
|
| 349 |
-
background: #
|
| 350 |
border: 1px solid rgba(255, 255, 255, 0.08);
|
| 351 |
border-radius: 16px;
|
| 352 |
padding: 1.25rem 1.5rem;
|
|
@@ -366,24 +379,24 @@ st.markdown("""
|
|
| 366 |
}
|
| 367 |
.step-default .step-circle {
|
| 368 |
background: rgba(255, 255, 255, 0.06);
|
| 369 |
-
color: #
|
| 370 |
border: 2px solid rgba(255, 255, 255, 0.12);
|
| 371 |
}
|
| 372 |
.step-active .step-circle {
|
| 373 |
-
background:
|
| 374 |
-
color: #
|
| 375 |
-
box-shadow: 0 4px
|
| 376 |
animation: stepBreathe 2.6s ease-in-out infinite;
|
| 377 |
}
|
| 378 |
.step-done .step-circle {
|
| 379 |
-
background: linear-gradient(135deg, #
|
| 380 |
color: white;
|
| 381 |
-
box-shadow: 0 4px 12px rgba(
|
| 382 |
animation: stepPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
|
| 383 |
}
|
| 384 |
-
.step-label { font-size: 0.85rem; font-weight: 500; color: #
|
| 385 |
-
.step-active .step-label { color: #
|
| 386 |
-
.step-done .step-label { color: #
|
| 387 |
|
| 388 |
.step-bar {
|
| 389 |
flex: 1; height: 3px;
|
|
@@ -393,14 +406,14 @@ st.markdown("""
|
|
| 393 |
}
|
| 394 |
.step-bar-fill {
|
| 395 |
position: absolute; inset: 0;
|
| 396 |
-
background: linear-gradient(90deg, #
|
| 397 |
transform-origin: left;
|
| 398 |
transition: transform 0.5s ease;
|
| 399 |
}
|
| 400 |
.step-bar-fill.empty { transform: scaleX(0); }
|
| 401 |
.step-bar-fill.full {
|
| 402 |
transform: scaleX(1);
|
| 403 |
-
background: linear-gradient(90deg, #
|
| 404 |
animation: growX 0.6s cubic-bezier(0.65, 0, 0.35, 1) 0.1s both;
|
| 405 |
}
|
| 406 |
|
|
@@ -415,14 +428,14 @@ st.markdown("""
|
|
| 415 |
display: flex; align-items: center; justify-content: center;
|
| 416 |
font-size: 1.25rem;
|
| 417 |
}
|
| 418 |
-
.card-icon-1 { background: linear-gradient(135deg, rgba(
|
| 419 |
-
.card-icon-2 { background: linear-gradient(135deg, rgba(
|
| 420 |
-
.card-icon-3 { background: linear-gradient(135deg, rgba(
|
| 421 |
.card-title {
|
| 422 |
-
font-size: 1.1rem; font-weight: 700; color: #
|
| 423 |
}
|
| 424 |
.card-subtitle {
|
| 425 |
-
font-size: 0.8rem; color: #
|
| 426 |
}
|
| 427 |
|
| 428 |
/* βββ STEP NUMBER BADGES (popup, straddling the card's top-left corner) ββ */
|
|
@@ -433,10 +446,10 @@ st.markdown("""
|
|
| 433 |
border-radius: 14px; /* squircle β softer, more modern than a full circle */
|
| 434 |
display: flex; align-items: center; justify-content: center;
|
| 435 |
font-size: 1.4rem; font-weight: 800; color: #FFFFFF;
|
| 436 |
-
border: 2px solid #
|
| 437 |
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.32);
|
| 438 |
z-index: 5;
|
| 439 |
-
background: linear-gradient(135deg, #
|
| 440 |
animation: stepPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
|
| 441 |
}
|
| 442 |
|
|
@@ -444,7 +457,7 @@ st.markdown("""
|
|
| 444 |
/* :not(...) excludes nested column rows (e.g. the PO input + button row) */
|
| 445 |
[data-testid="stColumn"]:not([data-testid="stColumn"] [data-testid="stColumn"]) {
|
| 446 |
position: relative; /* anchor for the popup step badges */
|
| 447 |
-
background: #
|
| 448 |
border: 1px solid rgba(255, 255, 255, 0.08);
|
| 449 |
border-radius: 18px;
|
| 450 |
padding: 1.6rem 1.7rem;
|
|
@@ -455,14 +468,14 @@ st.markdown("""
|
|
| 455 |
.step2-lock { display: none; }
|
| 456 |
.step2-lock-hint {
|
| 457 |
display: flex; align-items: center; gap: 0.4rem;
|
| 458 |
-
font-size: 0.82rem; color: #
|
| 459 |
margin: 0 0 0.9rem 0;
|
| 460 |
}
|
| 461 |
|
| 462 |
/* βββ VENDOR CARDS βββββββββββββββββββββββββββββββββββββββββββββ */
|
| 463 |
.vendor-card {
|
| 464 |
-
background: linear-gradient(135deg, rgba(
|
| 465 |
-
border: 1px solid rgba(
|
| 466 |
padding: 1rem 1.25rem;
|
| 467 |
border-radius: 14px;
|
| 468 |
margin: 0.6rem 0;
|
|
@@ -472,19 +485,19 @@ st.markdown("""
|
|
| 472 |
}
|
| 473 |
.vendor-card:hover {
|
| 474 |
transform: translateX(2px);
|
| 475 |
-
box-shadow: 0 4px 16px rgba(
|
| 476 |
}
|
| 477 |
.vendor-card::before {
|
| 478 |
content: "";
|
| 479 |
position: absolute;
|
| 480 |
left: 0; top: 0; bottom: 0;
|
| 481 |
width: 4px;
|
| 482 |
-
background: linear-gradient(180deg, #
|
| 483 |
}
|
| 484 |
.vendor-card-label {
|
| 485 |
font-size: 0.7rem;
|
| 486 |
text-transform: uppercase;
|
| 487 |
-
color: #
|
| 488 |
font-weight: 700;
|
| 489 |
letter-spacing: 0.06em;
|
| 490 |
margin-bottom: 0.4rem;
|
|
@@ -492,17 +505,17 @@ st.markdown("""
|
|
| 492 |
}
|
| 493 |
.vendor-card-value {
|
| 494 |
font-size: 1.05rem;
|
| 495 |
-
color: #
|
| 496 |
font-weight: 600;
|
| 497 |
line-height: 1.4;
|
| 498 |
}
|
| 499 |
|
| 500 |
/* βββ BUTTONS ββββββββββββββββββββββββββββββββββββββββββββββββββ */
|
| 501 |
.stButton button[kind="primary"] {
|
| 502 |
-
background: linear-gradient(135deg, #
|
| 503 |
border: none !important;
|
| 504 |
color: #FFFFFF !important;
|
| 505 |
-
box-shadow: 0 4px 14px rgba(
|
| 506 |
font-weight: 700 !important;
|
| 507 |
height: 3.25rem !important;
|
| 508 |
font-size: 1.05rem !important;
|
|
@@ -511,21 +524,21 @@ st.markdown("""
|
|
| 511 |
}
|
| 512 |
.stButton button[kind="primary"]:hover {
|
| 513 |
transform: translateY(-1px);
|
| 514 |
-
box-shadow: 0 6px 20px rgba(
|
| 515 |
-
background: linear-gradient(135deg, #
|
| 516 |
}
|
| 517 |
.stButton button[kind="secondary"] {
|
| 518 |
-
background: rgba(
|
| 519 |
-
border: 1.5px solid rgba(
|
| 520 |
-
color: #
|
| 521 |
font-weight: 600 !important;
|
| 522 |
height: 3rem !important;
|
| 523 |
border-radius: 999px !important;
|
| 524 |
transition: all 0.2s ease !important;
|
| 525 |
}
|
| 526 |
.stButton button[kind="secondary"]:hover {
|
| 527 |
-
background: rgba(
|
| 528 |
-
border-color: #
|
| 529 |
transform: translateY(-1px);
|
| 530 |
}
|
| 531 |
/* PO lookup button β match the PO input height (both pinned to 3rem via their
|
|
@@ -541,10 +554,10 @@ st.markdown("""
|
|
| 541 |
height: 3rem !important;
|
| 542 |
}
|
| 543 |
.stDownloadButton button {
|
| 544 |
-
background: linear-gradient(135deg, #
|
| 545 |
color: #FFFFFF !important;
|
| 546 |
border: none !important;
|
| 547 |
-
box-shadow: 0 4px 14px rgba(
|
| 548 |
font-weight: 700 !important;
|
| 549 |
height: 3.25rem !important;
|
| 550 |
font-size: 1.05rem !important;
|
|
@@ -553,8 +566,8 @@ st.markdown("""
|
|
| 553 |
}
|
| 554 |
.stDownloadButton button:hover {
|
| 555 |
transform: translateY(-1px);
|
| 556 |
-
box-shadow: 0 6px 20px rgba(
|
| 557 |
-
background: linear-gradient(135deg, #
|
| 558 |
}
|
| 559 |
/* Cream buttons render their label inside a stMarkdownContainer <p>, which the
|
| 560 |
global markdown rule forces to light text. Re-assert purple on the label text
|
|
@@ -580,11 +593,11 @@ st.markdown("""
|
|
| 580 |
[data-baseweb="base-input"],
|
| 581 |
[data-baseweb="input"] > div,
|
| 582 |
[data-baseweb="base-input"] > div {
|
| 583 |
-
background-color: #
|
| 584 |
-
background: #
|
| 585 |
-
border: 1.5px solid rgba(
|
| 586 |
border-radius: 12px !important;
|
| 587 |
-
color: #
|
| 588 |
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25) !important; /* subtle inner shadow */
|
| 589 |
}
|
| 590 |
|
|
@@ -599,12 +612,12 @@ st.markdown("""
|
|
| 599 |
input[type="password"] {
|
| 600 |
background-color: transparent !important;
|
| 601 |
background: transparent !important;
|
| 602 |
-
color: #
|
| 603 |
-
-webkit-text-fill-color: #
|
| 604 |
font-size: 0.95rem !important;
|
| 605 |
font-weight: 500 !important; /* typed text β clearly bolder */
|
| 606 |
border: none !important;
|
| 607 |
-
caret-color: #
|
| 608 |
font-style: normal !important;
|
| 609 |
}
|
| 610 |
|
|
@@ -615,33 +628,33 @@ st.markdown("""
|
|
| 615 |
.stTextInput input::placeholder,
|
| 616 |
input::placeholder,
|
| 617 |
textarea::placeholder {
|
| 618 |
-
color: rgba(
|
| 619 |
font-style: italic !important;
|
| 620 |
font-weight: 400 !important;
|
| 621 |
opacity: 1 !important;
|
| 622 |
-
-webkit-text-fill-color: rgba(
|
| 623 |
}
|
| 624 |
|
| 625 |
/* Webkit autofill β prevent yellow bg */
|
| 626 |
input:-webkit-autofill,
|
| 627 |
input:-webkit-autofill:hover,
|
| 628 |
input:-webkit-autofill:focus {
|
| 629 |
-
-webkit-text-fill-color: #
|
| 630 |
-
-webkit-box-shadow: 0 0 0 1000px #
|
| 631 |
-
box-shadow: 0 0 0 1000px #
|
| 632 |
-
background: #
|
| 633 |
}
|
| 634 |
|
| 635 |
/* Focus state β emerald glow on wrapper + subtle lift */
|
| 636 |
[data-testid="stTextInput"] > div > div:focus-within,
|
| 637 |
[data-baseweb="input"]:focus-within,
|
| 638 |
[data-baseweb="base-input"]:focus-within {
|
| 639 |
-
border-color: #
|
| 640 |
box-shadow:
|
| 641 |
-
0 0 0 4px rgba(
|
| 642 |
inset 0 1px 2px rgba(0, 0, 0, 0.04) !important;
|
| 643 |
-
background-color: #
|
| 644 |
-
background: #
|
| 645 |
}
|
| 646 |
|
| 647 |
/* Selectbox β same treatment, deep nesting */
|
|
@@ -652,20 +665,20 @@ st.markdown("""
|
|
| 652 |
[data-baseweb="select"],
|
| 653 |
[data-baseweb="select"] > div,
|
| 654 |
[data-baseweb="select"] > div > div {
|
| 655 |
-
background-color: #
|
| 656 |
-
background: #
|
| 657 |
-
border: 1.5px solid rgba(
|
| 658 |
border-radius: 12px !important;
|
| 659 |
-
color: #
|
| 660 |
}
|
| 661 |
[data-baseweb="select"] *,
|
| 662 |
[data-baseweb="select"] span,
|
| 663 |
[data-baseweb="select"] div {
|
| 664 |
-
color: #
|
| 665 |
}
|
| 666 |
[data-testid="stSelectbox"] svg,
|
| 667 |
[data-baseweb="select"] svg {
|
| 668 |
-
fill: #
|
| 669 |
}
|
| 670 |
|
| 671 |
/* Selectbox dropdown popover (portaled outside main DOM β needs high
|
|
@@ -681,9 +694,9 @@ st.markdown("""
|
|
| 681 |
[role="listbox"],
|
| 682 |
ul[role="listbox"],
|
| 683 |
div[role="listbox"] {
|
| 684 |
-
background: #
|
| 685 |
-
background-color: #
|
| 686 |
-
color: #
|
| 687 |
border: none !important;
|
| 688 |
border-radius: 0 !important;
|
| 689 |
box-shadow: none !important;
|
|
@@ -692,7 +705,7 @@ st.markdown("""
|
|
| 692 |
/* The single rounded frame: the listbox container only */
|
| 693 |
html body [data-baseweb="popover"] [role="listbox"],
|
| 694 |
[role="listbox"] {
|
| 695 |
-
border: 1px solid rgba(
|
| 696 |
border-radius: 12px !important;
|
| 697 |
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important;
|
| 698 |
}
|
|
@@ -703,10 +716,10 @@ st.markdown("""
|
|
| 703 |
html body [role="option"],
|
| 704 |
html body ul[role="listbox"] > li,
|
| 705 |
li[role="option"] {
|
| 706 |
-
background: #
|
| 707 |
-
background-color: #
|
| 708 |
-
color: #
|
| 709 |
-
-webkit-text-fill-color: #
|
| 710 |
padding: 0.55rem 0.85rem !important;
|
| 711 |
}
|
| 712 |
/* Force inner content of option to inherit light color */
|
|
@@ -715,8 +728,8 @@ st.markdown("""
|
|
| 715 |
li[role="option"] *,
|
| 716 |
li[role="option"] div,
|
| 717 |
li[role="option"] span {
|
| 718 |
-
color: #
|
| 719 |
-
-webkit-text-fill-color: #
|
| 720 |
background: transparent !important;
|
| 721 |
background-color: transparent !important;
|
| 722 |
}
|
|
@@ -725,23 +738,23 @@ st.markdown("""
|
|
| 725 |
html body [data-baseweb="popover"] li:hover,
|
| 726 |
html body [role="option"]:hover,
|
| 727 |
li[role="option"]:hover {
|
| 728 |
-
background: rgba(
|
| 729 |
-
background-color: rgba(
|
| 730 |
-
color: #
|
| 731 |
}
|
| 732 |
html body [data-baseweb="popover"] li:hover *,
|
| 733 |
html body [role="option"]:hover *,
|
| 734 |
li[role="option"]:hover * {
|
| 735 |
-
color: #
|
| 736 |
-
-webkit-text-fill-color: #
|
| 737 |
}
|
| 738 |
|
| 739 |
/* Selected option */
|
| 740 |
html body [role="option"][aria-selected="true"],
|
| 741 |
li[role="option"][aria-selected="true"] {
|
| 742 |
-
background: rgba(
|
| 743 |
-
background-color: rgba(
|
| 744 |
-
color: #
|
| 745 |
}
|
| 746 |
|
| 747 |
/* Scrollbar inside dropdown */
|
|
@@ -752,7 +765,7 @@ st.markdown("""
|
|
| 752 |
}
|
| 753 |
[data-baseweb="popover"] ul::-webkit-scrollbar-thumb,
|
| 754 |
[role="listbox"]::-webkit-scrollbar-thumb {
|
| 755 |
-
background: rgba(
|
| 756 |
border-radius: 4px;
|
| 757 |
}
|
| 758 |
|
|
@@ -760,45 +773,45 @@ st.markdown("""
|
|
| 760 |
.stTextArea textarea,
|
| 761 |
[data-baseweb="textarea"] textarea,
|
| 762 |
[data-testid="stTextArea"] textarea {
|
| 763 |
-
background-color: #
|
| 764 |
-
background: #
|
| 765 |
-
color: #
|
| 766 |
-
border: 1.5px solid rgba(
|
| 767 |
border-radius: 12px !important;
|
| 768 |
-
-webkit-text-fill-color: #
|
| 769 |
}
|
| 770 |
|
| 771 |
/* Radio buttons β text color and indicator */
|
| 772 |
.stRadio label,
|
| 773 |
.stRadio [data-baseweb="radio"] label,
|
| 774 |
.stRadio > div > div {
|
| 775 |
-
color: #
|
| 776 |
}
|
| 777 |
.stRadio [data-baseweb="radio"] div[role="radio"] {
|
| 778 |
background-color: rgba(255, 255, 255, 0.05) !important;
|
| 779 |
-
border-color: rgba(
|
| 780 |
}
|
| 781 |
.stRadio [data-baseweb="radio"] div[role="radio"][aria-checked="true"] {
|
| 782 |
-
background-color: #
|
| 783 |
-
border-color: #
|
| 784 |
}
|
| 785 |
|
| 786 |
/* File uploader */
|
| 787 |
[data-testid="stFileUploader"] section,
|
| 788 |
[data-testid="stFileUploader"] > div {
|
| 789 |
background: rgba(255, 255, 255, 0.04) !important;
|
| 790 |
-
border: 2px dashed rgba(
|
| 791 |
border-radius: 14px !important;
|
| 792 |
-
color: #
|
| 793 |
}
|
| 794 |
[data-testid="stFileUploader"] button {
|
| 795 |
-
background: rgba(
|
| 796 |
-
color: #
|
| 797 |
-
border: 1px solid rgba(
|
| 798 |
}
|
| 799 |
[data-testid="stFileUploader"] small,
|
| 800 |
[data-testid="stFileUploader"] span {
|
| 801 |
-
color: #
|
| 802 |
}
|
| 803 |
|
| 804 |
/* Labels above inputs */
|
|
@@ -809,7 +822,7 @@ st.markdown("""
|
|
| 809 |
.stRadio label > div:first-child,
|
| 810 |
.stFileUploader label {
|
| 811 |
font-weight: 600 !important;
|
| 812 |
-
color: #
|
| 813 |
font-size: 0.85rem !important;
|
| 814 |
}
|
| 815 |
|
|
@@ -820,12 +833,12 @@ st.markdown("""
|
|
| 820 |
backdrop-filter: blur(10px);
|
| 821 |
}
|
| 822 |
[data-testid="stNotificationContentSuccess"] {
|
| 823 |
-
background: rgba(
|
| 824 |
-
color: #
|
| 825 |
}
|
| 826 |
[data-testid="stNotificationContentInfo"] {
|
| 827 |
-
background: rgba(
|
| 828 |
-
color: #
|
| 829 |
}
|
| 830 |
/* Warning alert. Streamlit 1.57 paints the colored box on stAlertContainer
|
| 831 |
(the old stNotificationContentWarning testid no longer exists); scope to
|
|
@@ -852,9 +865,9 @@ st.markdown("""
|
|
| 852 |
[data-testid="stExpander"] summary {
|
| 853 |
background: rgba(255, 255, 255, 0.04) !important;
|
| 854 |
border-radius: 12px !important;
|
| 855 |
-
color: #
|
| 856 |
font-weight: 600 !important;
|
| 857 |
-
border: 1px solid rgba(
|
| 858 |
}
|
| 859 |
[data-testid="stExpander"] {
|
| 860 |
background: transparent !important;
|
|
@@ -866,7 +879,7 @@ st.markdown("""
|
|
| 866 |
}
|
| 867 |
[data-testid="stExpander"] [data-testid="stExpanderDetails"] {
|
| 868 |
background: rgba(255, 255, 255, 0.03) !important;
|
| 869 |
-
border: 1px solid rgba(
|
| 870 |
border-radius: 12px !important;
|
| 871 |
padding: 1rem !important;
|
| 872 |
margin-top: 0.5rem !important;
|
|
@@ -876,14 +889,14 @@ st.markdown("""
|
|
| 876 |
.section-title {
|
| 877 |
font-size: 0.95rem;
|
| 878 |
font-weight: 700;
|
| 879 |
-
color: #
|
| 880 |
margin: 1.25rem 0 0.75rem 0;
|
| 881 |
display: flex; align-items: center; gap: 0.5rem;
|
| 882 |
}
|
| 883 |
.section-title::before {
|
| 884 |
content: "";
|
| 885 |
width: 4px; height: 18px;
|
| 886 |
-
background: linear-gradient(180deg, #
|
| 887 |
border-radius: 2px;
|
| 888 |
}
|
| 889 |
|
|
@@ -893,45 +906,53 @@ st.markdown("""
|
|
| 893 |
padding: 2rem 1rem;
|
| 894 |
background: rgba(255, 255, 255, 0.03);
|
| 895 |
border-radius: 14px;
|
| 896 |
-
border: 2px dashed rgba(
|
| 897 |
margin: 1rem 0;
|
| 898 |
}
|
| 899 |
.empty-state-icon { margin-bottom: 0.75rem; opacity: 0.7; line-height: 0; }
|
| 900 |
-
.empty-state-text { color: #
|
| 901 |
|
| 902 |
/* βββ DIVIDER βββββββββββββββββββββββββββββββββββββββββββββββββββ */
|
| 903 |
hr {
|
| 904 |
border: none !important;
|
| 905 |
height: 1px !important;
|
| 906 |
-
background: linear-gradient(90deg, transparent 0%, rgba(
|
| 907 |
margin: 1rem 0 !important;
|
| 908 |
}
|
| 909 |
|
| 910 |
/* Captions */
|
| 911 |
.caption, .stCaption, [data-testid="stCaptionContainer"] {
|
| 912 |
-
color: #
|
| 913 |
}
|
| 914 |
|
| 915 |
/* Markdown content (general text) */
|
| 916 |
.stMarkdown, .stMarkdown p, [data-testid="stMarkdownContainer"] {
|
| 917 |
-
color: #
|
| 918 |
}
|
| 919 |
-
.stMarkdown strong { color: #
|
| 920 |
.stMarkdown code {
|
| 921 |
-
background: rgba(
|
| 922 |
-
color: #
|
| 923 |
padding: 0.15rem 0.45rem !important;
|
| 924 |
border-radius: 6px !important;
|
| 925 |
}
|
| 926 |
|
| 927 |
/* Spinner */
|
| 928 |
.stSpinner > div {
|
| 929 |
-
border-top-color: #
|
| 930 |
}
|
| 931 |
</style>
|
| 932 |
""", unsafe_allow_html=True)
|
| 933 |
|
| 934 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 935 |
# =============================================================================
|
| 936 |
# Session State
|
| 937 |
# =============================================================================
|
|
@@ -1149,7 +1170,7 @@ with left_col:
|
|
| 1149 |
st.markdown("""
|
| 1150 |
<div class="empty-state">
|
| 1151 |
<div class="empty-state-icon">
|
| 1152 |
-
<svg width="56" height="56" viewBox="0 0 24 24" fill="none" stroke="#
|
| 1153 |
<circle cx="11" cy="11" r="7"></circle>
|
| 1154 |
<line x1="21" y1="21" x2="16.65" y2="16.65"></line>
|
| 1155 |
</svg>
|
|
@@ -1280,14 +1301,14 @@ if has_generated:
|
|
| 1280 |
<p class="card-subtitle">Step 3 β Download</p>
|
| 1281 |
</div>
|
| 1282 |
</div>
|
| 1283 |
-
<div style="background: linear-gradient(135deg, rgba(
|
| 1284 |
-
border: 1px solid rgba(
|
| 1285 |
margin-bottom: 0.75rem;">
|
| 1286 |
<div style="display: flex; align-items: center; gap: 0.5rem;">
|
| 1287 |
-
<span style="background: linear-gradient(135deg, #
|
| 1288 |
border-radius: 50%; display: inline-flex; align-items: center;
|
| 1289 |
justify-content: center; font-size: 0.85rem;">β</span>
|
| 1290 |
-
<span style="font-weight: 600; color: #
|
| 1291 |
</div>
|
| 1292 |
</div>
|
| 1293 |
""", unsafe_allow_html=True)
|
|
|
|
| 1 |
# -*- coding: utf-8 -*-
|
| 2 |
"""
|
| 3 |
+
ΰΈ£ΰΈ°ΰΈΰΈΰΈͺΰΈ£ΰΉΰΈ²ΰΈΰΉΰΈΰΈΰΈͺΰΈ²ΰΈ£ΰΈΰΈ±ΰΈΰΉΰΈΰΈ‘ΰΈ±ΰΈΰΈ΄ - Ember Dark Theme
|
| 4 |
====================================================
|
| 5 |
+
- Black canvas with burnt-orange ember glow accents
|
| 6 |
- No sidebar β full-width main content
|
| 7 |
- Compact inline data source picker
|
| 8 |
+
- Glassmorphism charcoal cards
|
| 9 |
"""
|
| 10 |
|
| 11 |
import os
|
|
|
|
| 25 |
DOC_TYPE_OPTIONS,
|
| 26 |
DISPLAY_FIELDS,
|
| 27 |
)
|
| 28 |
+
from auth_gate import require_login, render_topbar
|
| 29 |
|
| 30 |
|
| 31 |
# =============================================================================
|
|
|
|
| 136 |
|
| 137 |
|
| 138 |
# =============================================================================
|
| 139 |
+
# Ember Dark CSS Theme (black canvas + burnt-orange accents)
|
| 140 |
# =============================================================================
|
| 141 |
st.markdown("""
|
| 142 |
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Sarabun:wght@400;500;600;700&display=swap" rel="stylesheet">
|
| 143 |
|
| 144 |
<style>
|
| 145 |
/* βββ COLORS βββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 146 |
+
Page bg : #0A0705 β #000000 (near-black, ember glow)
|
| 147 |
+
Card surface : #161412 (charcoal panel)
|
| 148 |
+
Field bg : #100D0B (indented input)
|
| 149 |
+
Text primary : #F5F3F1 (near-white)
|
| 150 |
+
Text label : #CBC4BD (warm light gray)
|
| 151 |
+
Text muted : #928981 (warm gray)
|
| 152 |
+
Primary action: linear-gradient #F26A3A β #E85D27 (orangeβrust)
|
| 153 |
+
Accent orange : #F26A3A Accent rust: #E85D27
|
| 154 |
+
Step done : #F26A3A Step active: #F2F0EE (white)
|
| 155 |
Border : rgba(255, 255, 255, 0.08)
|
| 156 |
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
|
| 157 |
|
| 158 |
/* GLOBAL */
|
| 159 |
html, body, [class*="css"], .stApp {
|
| 160 |
font-family: 'Inter', 'Sarabun', -apple-system, BlinkMacSystemFont, sans-serif !important;
|
| 161 |
+
color: #F5F3F1 !important;
|
| 162 |
}
|
| 163 |
|
| 164 |
/* Page background β soft warm linen with a faint coral glow */
|
|
|
|
| 168 |
below it.) */
|
| 169 |
html {
|
| 170 |
background:
|
| 171 |
+
radial-gradient(at 18% 8%, rgba(242, 106, 58, 0.16) 0px, transparent 55%),
|
| 172 |
+
radial-gradient(at 85% 92%, rgba(232, 93, 39, 0.10) 0px, transparent 55%),
|
| 173 |
+
linear-gradient(180deg, #0A0705 0%, #000000 100%) !important;
|
| 174 |
background-attachment: fixed !important;
|
| 175 |
+
/* Base colour under the fixed gradient β fills any area the fixed image
|
| 176 |
+
doesn't paint (below the first viewport on tall pages) so there's no
|
| 177 |
+
white band at the bottom. */
|
| 178 |
+
background-color: #000000 !important;
|
| 179 |
}
|
| 180 |
.stApp { background: transparent !important; }
|
| 181 |
+
/* Solid black base behind everything β the html gradient uses fixed
|
| 182 |
+
attachment and won't paint below the first viewport on tall pages, which
|
| 183 |
+
otherwise shows as a white band at the bottom. */
|
| 184 |
+
body { background-color: #000000 !important; }
|
| 185 |
|
| 186 |
/* Slim, theme-matched scrollbar. No scrollbar-gutter reservation β that left
|
| 187 |
an empty gutter on the non-scrolling edge which painted with the native
|
| 188 |
white track color (unreachable by ::-webkit-scrollbar-track), showing as a
|
| 189 |
white bar. Just a normal right scrollbar with a transparent track + soft
|
| 190 |
coral thumb, so there is no white bar on either side. */
|
| 191 |
+
html { scrollbar-color: rgba(242, 106, 58, 0.45) transparent; scrollbar-width: thin; }
|
| 192 |
::-webkit-scrollbar { width: 10px; height: 10px; }
|
| 193 |
::-webkit-scrollbar-track { background: transparent; }
|
| 194 |
::-webkit-scrollbar-thumb {
|
| 195 |
+
background: rgba(242, 106, 58, 0.45);
|
| 196 |
border-radius: 8px;
|
| 197 |
}
|
| 198 |
+
::-webkit-scrollbar-thumb:hover { background: rgba(242, 106, 58, 0.65); }
|
| 199 |
|
| 200 |
/* Hide Streamlit chrome */
|
| 201 |
[data-testid="stToolbar"] { visibility: hidden; height: 0; position: fixed; }
|
|
|
|
| 253 |
to { opacity: 1; transform: translateY(0); }
|
| 254 |
}
|
| 255 |
@keyframes pulse {
|
| 256 |
+
0%, 100% { box-shadow: 0 0 0 0 rgba(242, 106, 58, 0.4); }
|
| 257 |
+
50% { box-shadow: 0 0 0 7px rgba(242, 106, 58, 0); }
|
| 258 |
}
|
| 259 |
@keyframes blob {
|
| 260 |
0%, 100% { transform: translate(0, 0) scale(1); }
|
|
|
|
| 281 |
}
|
| 282 |
|
| 283 |
/* βββ HERO βββββββββββββββββββββββββββββββββββββββββββββββββββββ */
|
| 284 |
+
/* Dashboard hero β black panel with a warm ember glow bleeding from the top,
|
| 285 |
+
a faint hairline grid, and a single orange dot accent. */
|
|
|
|
|
|
|
| 286 |
.hero {
|
| 287 |
position: relative;
|
| 288 |
+
background:
|
| 289 |
+
radial-gradient(130% 150% at 50% -25%, rgba(242, 106, 58, 0.45) 0%, rgba(232, 93, 39, 0.18) 38%, transparent 72%),
|
| 290 |
+
linear-gradient(180deg, #15110E 0%, #0B0908 100%);
|
| 291 |
+
border: 1px solid rgba(255, 255, 255, 0.08);
|
| 292 |
+
padding: 1.6rem 2.5rem 1.7rem;
|
| 293 |
border-radius: 24px;
|
| 294 |
color: #FFFFFF;
|
| 295 |
margin-bottom: 2rem;
|
| 296 |
overflow: hidden;
|
| 297 |
+
box-shadow: 0 14px 44px rgba(0, 0, 0, 0.5);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 298 |
animation: fadeInUp 0.6s ease;
|
| 299 |
}
|
| 300 |
+
/* Single orange dot accent (echoes the reference's β mark). */
|
| 301 |
+
.hero::after {
|
| 302 |
+
content: "";
|
| 303 |
+
position: absolute;
|
| 304 |
+
left: 24px; bottom: 22px;
|
| 305 |
+
width: 11px; height: 11px; border-radius: 50%;
|
| 306 |
+
background: #F26A3A;
|
| 307 |
+
box-shadow: 0 0 16px 3px rgba(242, 106, 58, 0.65);
|
| 308 |
+
z-index: 3;
|
| 309 |
+
}
|
| 310 |
+
/* Faint hairline grid, fading out toward the bottom. */
|
| 311 |
.hero-pattern {
|
| 312 |
position: absolute;
|
| 313 |
+
inset: 0;
|
| 314 |
+
background-image:
|
| 315 |
+
linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
|
| 316 |
+
linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
|
| 317 |
+
background-size: 46px 46px;
|
| 318 |
+
-webkit-mask: linear-gradient(180deg, #000 0%, transparent 88%);
|
| 319 |
+
mask: linear-gradient(180deg, #000 0%, transparent 88%);
|
| 320 |
pointer-events: none;
|
| 321 |
+
z-index: 1;
|
| 322 |
}
|
| 323 |
.hero-content { position: relative; z-index: 2; text-align: left; }
|
| 324 |
.hero-badge {
|
|
|
|
| 359 |
}
|
| 360 |
/* βββ STEPS ββββββββββββββββββββββββββββββββββββββββββββββββββββ */
|
| 361 |
.steps-wrapper {
|
| 362 |
+
background: #161412;
|
| 363 |
border: 1px solid rgba(255, 255, 255, 0.08);
|
| 364 |
border-radius: 16px;
|
| 365 |
padding: 1.25rem 1.5rem;
|
|
|
|
| 379 |
}
|
| 380 |
.step-default .step-circle {
|
| 381 |
background: rgba(255, 255, 255, 0.06);
|
| 382 |
+
color: #928981;
|
| 383 |
border: 2px solid rgba(255, 255, 255, 0.12);
|
| 384 |
}
|
| 385 |
.step-active .step-circle {
|
| 386 |
+
background: #F2F0EE;
|
| 387 |
+
color: #1A1612;
|
| 388 |
+
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.55);
|
| 389 |
animation: stepBreathe 2.6s ease-in-out infinite;
|
| 390 |
}
|
| 391 |
.step-done .step-circle {
|
| 392 |
+
background: linear-gradient(135deg, #F26A3A 0%, #E85D27 100%);
|
| 393 |
color: white;
|
| 394 |
+
box-shadow: 0 4px 12px rgba(242, 106, 58, 0.35);
|
| 395 |
animation: stepPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
|
| 396 |
}
|
| 397 |
+
.step-label { font-size: 0.85rem; font-weight: 500; color: #928981; white-space: nowrap; }
|
| 398 |
+
.step-active .step-label { color: #F5F3F1; font-weight: 600; }
|
| 399 |
+
.step-done .step-label { color: #F26A3A; font-weight: 600; }
|
| 400 |
|
| 401 |
.step-bar {
|
| 402 |
flex: 1; height: 3px;
|
|
|
|
| 406 |
}
|
| 407 |
.step-bar-fill {
|
| 408 |
position: absolute; inset: 0;
|
| 409 |
+
background: linear-gradient(90deg, #F26A3A 0%, #E85D27 100%);
|
| 410 |
transform-origin: left;
|
| 411 |
transition: transform 0.5s ease;
|
| 412 |
}
|
| 413 |
.step-bar-fill.empty { transform: scaleX(0); }
|
| 414 |
.step-bar-fill.full {
|
| 415 |
transform: scaleX(1);
|
| 416 |
+
background: linear-gradient(90deg, #F26A3A 0%, #E85D27 100%);
|
| 417 |
animation: growX 0.6s cubic-bezier(0.65, 0, 0.35, 1) 0.1s both;
|
| 418 |
}
|
| 419 |
|
|
|
|
| 428 |
display: flex; align-items: center; justify-content: center;
|
| 429 |
font-size: 1.25rem;
|
| 430 |
}
|
| 431 |
+
.card-icon-1 { background: linear-gradient(135deg, rgba(242, 106, 58, 0.3) 0%, rgba(242, 106, 58, 0.18) 100%); }
|
| 432 |
+
.card-icon-2 { background: linear-gradient(135deg, rgba(242, 106, 58, 0.28) 0%, rgba(242, 106, 58, 0.16) 100%); }
|
| 433 |
+
.card-icon-3 { background: linear-gradient(135deg, rgba(232, 93, 39, 0.30) 0%, rgba(232, 93, 39, 0.16) 100%); }
|
| 434 |
.card-title {
|
| 435 |
+
font-size: 1.1rem; font-weight: 700; color: #F5F3F1; margin: 0; line-height: 1.2;
|
| 436 |
}
|
| 437 |
.card-subtitle {
|
| 438 |
+
font-size: 0.8rem; color: #928981; margin: 0.15rem 0 0 0; font-weight: 500;
|
| 439 |
}
|
| 440 |
|
| 441 |
/* βββ STEP NUMBER BADGES (popup, straddling the card's top-left corner) ββ */
|
|
|
|
| 446 |
border-radius: 14px; /* squircle β softer, more modern than a full circle */
|
| 447 |
display: flex; align-items: center; justify-content: center;
|
| 448 |
font-size: 1.4rem; font-weight: 800; color: #FFFFFF;
|
| 449 |
+
border: 2px solid #0A0807; /* thinner ring β less 'sticker' look */
|
| 450 |
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.32);
|
| 451 |
z-index: 5;
|
| 452 |
+
background: linear-gradient(135deg, #F26A3A 0%, #E8915E 100%);
|
| 453 |
animation: stepPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
|
| 454 |
}
|
| 455 |
|
|
|
|
| 457 |
/* :not(...) excludes nested column rows (e.g. the PO input + button row) */
|
| 458 |
[data-testid="stColumn"]:not([data-testid="stColumn"] [data-testid="stColumn"]) {
|
| 459 |
position: relative; /* anchor for the popup step badges */
|
| 460 |
+
background: #161412;
|
| 461 |
border: 1px solid rgba(255, 255, 255, 0.08);
|
| 462 |
border-radius: 18px;
|
| 463 |
padding: 1.6rem 1.7rem;
|
|
|
|
| 468 |
.step2-lock { display: none; }
|
| 469 |
.step2-lock-hint {
|
| 470 |
display: flex; align-items: center; gap: 0.4rem;
|
| 471 |
+
font-size: 0.82rem; color: #928981; font-weight: 600;
|
| 472 |
margin: 0 0 0.9rem 0;
|
| 473 |
}
|
| 474 |
|
| 475 |
/* βββ VENDOR CARDS βββββββββββββββββββββββββββββββββββββββββββββ */
|
| 476 |
.vendor-card {
|
| 477 |
+
background: linear-gradient(135deg, rgba(242, 106, 58, 0.14) 0%, rgba(232, 93, 39, 0.06) 100%);
|
| 478 |
+
border: 1px solid rgba(242, 106, 58, 0.25);
|
| 479 |
padding: 1rem 1.25rem;
|
| 480 |
border-radius: 14px;
|
| 481 |
margin: 0.6rem 0;
|
|
|
|
| 485 |
}
|
| 486 |
.vendor-card:hover {
|
| 487 |
transform: translateX(2px);
|
| 488 |
+
box-shadow: 0 4px 16px rgba(242, 106, 58, 0.18);
|
| 489 |
}
|
| 490 |
.vendor-card::before {
|
| 491 |
content: "";
|
| 492 |
position: absolute;
|
| 493 |
left: 0; top: 0; bottom: 0;
|
| 494 |
width: 4px;
|
| 495 |
+
background: linear-gradient(180deg, #F26A3A 0%, #E85D27 100%);
|
| 496 |
}
|
| 497 |
.vendor-card-label {
|
| 498 |
font-size: 0.7rem;
|
| 499 |
text-transform: uppercase;
|
| 500 |
+
color: #F2B391;
|
| 501 |
font-weight: 700;
|
| 502 |
letter-spacing: 0.06em;
|
| 503 |
margin-bottom: 0.4rem;
|
|
|
|
| 505 |
}
|
| 506 |
.vendor-card-value {
|
| 507 |
font-size: 1.05rem;
|
| 508 |
+
color: #F5F3F1;
|
| 509 |
font-weight: 600;
|
| 510 |
line-height: 1.4;
|
| 511 |
}
|
| 512 |
|
| 513 |
/* βββ BUTTONS ββββββββββββββββββββββββββββββββββββββββββββββββββ */
|
| 514 |
.stButton button[kind="primary"] {
|
| 515 |
+
background: linear-gradient(135deg, #F26A3A 0%, #E85D27 100%) !important;
|
| 516 |
border: none !important;
|
| 517 |
color: #FFFFFF !important;
|
| 518 |
+
box-shadow: 0 4px 14px rgba(242, 106, 58, 0.35) !important;
|
| 519 |
font-weight: 700 !important;
|
| 520 |
height: 3.25rem !important;
|
| 521 |
font-size: 1.05rem !important;
|
|
|
|
| 524 |
}
|
| 525 |
.stButton button[kind="primary"]:hover {
|
| 526 |
transform: translateY(-1px);
|
| 527 |
+
box-shadow: 0 6px 20px rgba(232, 93, 39, 0.45) !important;
|
| 528 |
+
background: linear-gradient(135deg, #FF8A52 0%, #D2602F 100%) !important;
|
| 529 |
}
|
| 530 |
.stButton button[kind="secondary"] {
|
| 531 |
+
background: rgba(242, 106, 58, 0.10) !important;
|
| 532 |
+
border: 1.5px solid rgba(242, 106, 58, 0.35) !important;
|
| 533 |
+
color: #F2B391 !important;
|
| 534 |
font-weight: 600 !important;
|
| 535 |
height: 3rem !important;
|
| 536 |
border-radius: 999px !important;
|
| 537 |
transition: all 0.2s ease !important;
|
| 538 |
}
|
| 539 |
.stButton button[kind="secondary"]:hover {
|
| 540 |
+
background: rgba(242, 106, 58, 0.15) !important;
|
| 541 |
+
border-color: #F26A3A !important;
|
| 542 |
transform: translateY(-1px);
|
| 543 |
}
|
| 544 |
/* PO lookup button β match the PO input height (both pinned to 3rem via their
|
|
|
|
| 554 |
height: 3rem !important;
|
| 555 |
}
|
| 556 |
.stDownloadButton button {
|
| 557 |
+
background: linear-gradient(135deg, #F26A3A 0%, #E85D27 100%) !important;
|
| 558 |
color: #FFFFFF !important;
|
| 559 |
border: none !important;
|
| 560 |
+
box-shadow: 0 4px 14px rgba(242, 106, 58, 0.35) !important;
|
| 561 |
font-weight: 700 !important;
|
| 562 |
height: 3.25rem !important;
|
| 563 |
font-size: 1.05rem !important;
|
|
|
|
| 566 |
}
|
| 567 |
.stDownloadButton button:hover {
|
| 568 |
transform: translateY(-1px);
|
| 569 |
+
box-shadow: 0 6px 20px rgba(232, 93, 39, 0.45) !important;
|
| 570 |
+
background: linear-gradient(135deg, #FF8A52 0%, #D2602F 100%) !important;
|
| 571 |
}
|
| 572 |
/* Cream buttons render their label inside a stMarkdownContainer <p>, which the
|
| 573 |
global markdown rule forces to light text. Re-assert purple on the label text
|
|
|
|
| 593 |
[data-baseweb="base-input"],
|
| 594 |
[data-baseweb="input"] > div,
|
| 595 |
[data-baseweb="base-input"] > div {
|
| 596 |
+
background-color: #100D0B !important; /* soft off-white field */
|
| 597 |
+
background: #100D0B !important;
|
| 598 |
+
border: 1.5px solid rgba(242, 106, 58, 0.25) !important;
|
| 599 |
border-radius: 12px !important;
|
| 600 |
+
color: #F5F3F1 !important;
|
| 601 |
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25) !important; /* subtle inner shadow */
|
| 602 |
}
|
| 603 |
|
|
|
|
| 612 |
input[type="password"] {
|
| 613 |
background-color: transparent !important;
|
| 614 |
background: transparent !important;
|
| 615 |
+
color: #F5F3F1 !important;
|
| 616 |
+
-webkit-text-fill-color: #F5F3F1 !important;
|
| 617 |
font-size: 0.95rem !important;
|
| 618 |
font-weight: 500 !important; /* typed text β clearly bolder */
|
| 619 |
border: none !important;
|
| 620 |
+
caret-color: #F26A3A !important;
|
| 621 |
font-style: normal !important;
|
| 622 |
}
|
| 623 |
|
|
|
|
| 628 |
.stTextInput input::placeholder,
|
| 629 |
input::placeholder,
|
| 630 |
textarea::placeholder {
|
| 631 |
+
color: rgba(146, 137, 129, 0.65) !important; /* muted forest gray */
|
| 632 |
font-style: italic !important;
|
| 633 |
font-weight: 400 !important;
|
| 634 |
opacity: 1 !important;
|
| 635 |
+
-webkit-text-fill-color: rgba(146, 137, 129, 0.65) !important;
|
| 636 |
}
|
| 637 |
|
| 638 |
/* Webkit autofill β prevent yellow bg */
|
| 639 |
input:-webkit-autofill,
|
| 640 |
input:-webkit-autofill:hover,
|
| 641 |
input:-webkit-autofill:focus {
|
| 642 |
+
-webkit-text-fill-color: #F5F3F1 !important;
|
| 643 |
+
-webkit-box-shadow: 0 0 0 1000px #100D0B inset !important;
|
| 644 |
+
box-shadow: 0 0 0 1000px #100D0B inset !important;
|
| 645 |
+
background: #100D0B !important;
|
| 646 |
}
|
| 647 |
|
| 648 |
/* Focus state β emerald glow on wrapper + subtle lift */
|
| 649 |
[data-testid="stTextInput"] > div > div:focus-within,
|
| 650 |
[data-baseweb="input"]:focus-within,
|
| 651 |
[data-baseweb="base-input"]:focus-within {
|
| 652 |
+
border-color: #F26A3A !important;
|
| 653 |
box-shadow:
|
| 654 |
+
0 0 0 4px rgba(242, 106, 58, 0.25),
|
| 655 |
inset 0 1px 2px rgba(0, 0, 0, 0.04) !important;
|
| 656 |
+
background-color: #1F1A16 !important;
|
| 657 |
+
background: #1F1A16 !important;
|
| 658 |
}
|
| 659 |
|
| 660 |
/* Selectbox β same treatment, deep nesting */
|
|
|
|
| 665 |
[data-baseweb="select"],
|
| 666 |
[data-baseweb="select"] > div,
|
| 667 |
[data-baseweb="select"] > div > div {
|
| 668 |
+
background-color: #100D0B !important;
|
| 669 |
+
background: #100D0B !important;
|
| 670 |
+
border: 1.5px solid rgba(242, 106, 58, 0.25) !important;
|
| 671 |
border-radius: 12px !important;
|
| 672 |
+
color: #F5F3F1 !important;
|
| 673 |
}
|
| 674 |
[data-baseweb="select"] *,
|
| 675 |
[data-baseweb="select"] span,
|
| 676 |
[data-baseweb="select"] div {
|
| 677 |
+
color: #F5F3F1 !important;
|
| 678 |
}
|
| 679 |
[data-testid="stSelectbox"] svg,
|
| 680 |
[data-baseweb="select"] svg {
|
| 681 |
+
fill: #F2B391 !important;
|
| 682 |
}
|
| 683 |
|
| 684 |
/* Selectbox dropdown popover (portaled outside main DOM β needs high
|
|
|
|
| 694 |
[role="listbox"],
|
| 695 |
ul[role="listbox"],
|
| 696 |
div[role="listbox"] {
|
| 697 |
+
background: #1F1A16 !important;
|
| 698 |
+
background-color: #1F1A16 !important;
|
| 699 |
+
color: #F5F3F1 !important;
|
| 700 |
border: none !important;
|
| 701 |
border-radius: 0 !important;
|
| 702 |
box-shadow: none !important;
|
|
|
|
| 705 |
/* The single rounded frame: the listbox container only */
|
| 706 |
html body [data-baseweb="popover"] [role="listbox"],
|
| 707 |
[role="listbox"] {
|
| 708 |
+
border: 1px solid rgba(242, 106, 58, 0.3) !important;
|
| 709 |
border-radius: 12px !important;
|
| 710 |
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important;
|
| 711 |
}
|
|
|
|
| 716 |
html body [role="option"],
|
| 717 |
html body ul[role="listbox"] > li,
|
| 718 |
li[role="option"] {
|
| 719 |
+
background: #1F1A16 !important;
|
| 720 |
+
background-color: #1F1A16 !important;
|
| 721 |
+
color: #F5F3F1 !important;
|
| 722 |
+
-webkit-text-fill-color: #F5F3F1 !important;
|
| 723 |
padding: 0.55rem 0.85rem !important;
|
| 724 |
}
|
| 725 |
/* Force inner content of option to inherit light color */
|
|
|
|
| 728 |
li[role="option"] *,
|
| 729 |
li[role="option"] div,
|
| 730 |
li[role="option"] span {
|
| 731 |
+
color: #F5F3F1 !important;
|
| 732 |
+
-webkit-text-fill-color: #F5F3F1 !important;
|
| 733 |
background: transparent !important;
|
| 734 |
background-color: transparent !important;
|
| 735 |
}
|
|
|
|
| 738 |
html body [data-baseweb="popover"] li:hover,
|
| 739 |
html body [role="option"]:hover,
|
| 740 |
li[role="option"]:hover {
|
| 741 |
+
background: rgba(242, 106, 58, 0.22) !important;
|
| 742 |
+
background-color: rgba(242, 106, 58, 0.22) !important;
|
| 743 |
+
color: #F2B391 !important;
|
| 744 |
}
|
| 745 |
html body [data-baseweb="popover"] li:hover *,
|
| 746 |
html body [role="option"]:hover *,
|
| 747 |
li[role="option"]:hover * {
|
| 748 |
+
color: #F2B391 !important;
|
| 749 |
+
-webkit-text-fill-color: #F2B391 !important;
|
| 750 |
}
|
| 751 |
|
| 752 |
/* Selected option */
|
| 753 |
html body [role="option"][aria-selected="true"],
|
| 754 |
li[role="option"][aria-selected="true"] {
|
| 755 |
+
background: rgba(242, 106, 58, 0.18) !important;
|
| 756 |
+
background-color: rgba(242, 106, 58, 0.18) !important;
|
| 757 |
+
color: #F2B391 !important;
|
| 758 |
}
|
| 759 |
|
| 760 |
/* Scrollbar inside dropdown */
|
|
|
|
| 765 |
}
|
| 766 |
[data-baseweb="popover"] ul::-webkit-scrollbar-thumb,
|
| 767 |
[role="listbox"]::-webkit-scrollbar-thumb {
|
| 768 |
+
background: rgba(242, 106, 58, 0.3);
|
| 769 |
border-radius: 4px;
|
| 770 |
}
|
| 771 |
|
|
|
|
| 773 |
.stTextArea textarea,
|
| 774 |
[data-baseweb="textarea"] textarea,
|
| 775 |
[data-testid="stTextArea"] textarea {
|
| 776 |
+
background-color: #100D0B !important;
|
| 777 |
+
background: #100D0B !important;
|
| 778 |
+
color: #F5F3F1 !important;
|
| 779 |
+
border: 1.5px solid rgba(242, 106, 58, 0.25) !important;
|
| 780 |
border-radius: 12px !important;
|
| 781 |
+
-webkit-text-fill-color: #F5F3F1 !important;
|
| 782 |
}
|
| 783 |
|
| 784 |
/* Radio buttons β text color and indicator */
|
| 785 |
.stRadio label,
|
| 786 |
.stRadio [data-baseweb="radio"] label,
|
| 787 |
.stRadio > div > div {
|
| 788 |
+
color: #F5F3F1 !important;
|
| 789 |
}
|
| 790 |
.stRadio [data-baseweb="radio"] div[role="radio"] {
|
| 791 |
background-color: rgba(255, 255, 255, 0.05) !important;
|
| 792 |
+
border-color: rgba(242, 106, 58, 0.4) !important;
|
| 793 |
}
|
| 794 |
.stRadio [data-baseweb="radio"] div[role="radio"][aria-checked="true"] {
|
| 795 |
+
background-color: #F26A3A !important;
|
| 796 |
+
border-color: #F26A3A !important;
|
| 797 |
}
|
| 798 |
|
| 799 |
/* File uploader */
|
| 800 |
[data-testid="stFileUploader"] section,
|
| 801 |
[data-testid="stFileUploader"] > div {
|
| 802 |
background: rgba(255, 255, 255, 0.04) !important;
|
| 803 |
+
border: 2px dashed rgba(242, 106, 58, 0.3) !important;
|
| 804 |
border-radius: 14px !important;
|
| 805 |
+
color: #F5F3F1 !important;
|
| 806 |
}
|
| 807 |
[data-testid="stFileUploader"] button {
|
| 808 |
+
background: rgba(242, 106, 58, 0.15) !important;
|
| 809 |
+
color: #F2B391 !important;
|
| 810 |
+
border: 1px solid rgba(242, 106, 58, 0.3) !important;
|
| 811 |
}
|
| 812 |
[data-testid="stFileUploader"] small,
|
| 813 |
[data-testid="stFileUploader"] span {
|
| 814 |
+
color: #CBC4BD !important;
|
| 815 |
}
|
| 816 |
|
| 817 |
/* Labels above inputs */
|
|
|
|
| 822 |
.stRadio label > div:first-child,
|
| 823 |
.stFileUploader label {
|
| 824 |
font-weight: 600 !important;
|
| 825 |
+
color: #CBC4BD !important;
|
| 826 |
font-size: 0.85rem !important;
|
| 827 |
}
|
| 828 |
|
|
|
|
| 833 |
backdrop-filter: blur(10px);
|
| 834 |
}
|
| 835 |
[data-testid="stNotificationContentSuccess"] {
|
| 836 |
+
background: rgba(242, 106, 58, 0.15) !important;
|
| 837 |
+
color: #F26A3A !important;
|
| 838 |
}
|
| 839 |
[data-testid="stNotificationContentInfo"] {
|
| 840 |
+
background: rgba(242, 106, 58, 0.18) !important;
|
| 841 |
+
color: #F2B391 !important;
|
| 842 |
}
|
| 843 |
/* Warning alert. Streamlit 1.57 paints the colored box on stAlertContainer
|
| 844 |
(the old stNotificationContentWarning testid no longer exists); scope to
|
|
|
|
| 865 |
[data-testid="stExpander"] summary {
|
| 866 |
background: rgba(255, 255, 255, 0.04) !important;
|
| 867 |
border-radius: 12px !important;
|
| 868 |
+
color: #CBC4BD !important;
|
| 869 |
font-weight: 600 !important;
|
| 870 |
+
border: 1px solid rgba(242, 106, 58, 0.12) !important;
|
| 871 |
}
|
| 872 |
[data-testid="stExpander"] {
|
| 873 |
background: transparent !important;
|
|
|
|
| 879 |
}
|
| 880 |
[data-testid="stExpander"] [data-testid="stExpanderDetails"] {
|
| 881 |
background: rgba(255, 255, 255, 0.03) !important;
|
| 882 |
+
border: 1px solid rgba(242, 106, 58, 0.1) !important;
|
| 883 |
border-radius: 12px !important;
|
| 884 |
padding: 1rem !important;
|
| 885 |
margin-top: 0.5rem !important;
|
|
|
|
| 889 |
.section-title {
|
| 890 |
font-size: 0.95rem;
|
| 891 |
font-weight: 700;
|
| 892 |
+
color: #F5F3F1;
|
| 893 |
margin: 1.25rem 0 0.75rem 0;
|
| 894 |
display: flex; align-items: center; gap: 0.5rem;
|
| 895 |
}
|
| 896 |
.section-title::before {
|
| 897 |
content: "";
|
| 898 |
width: 4px; height: 18px;
|
| 899 |
+
background: linear-gradient(180deg, #F26A3A 0%, #E85D27 100%);
|
| 900 |
border-radius: 2px;
|
| 901 |
}
|
| 902 |
|
|
|
|
| 906 |
padding: 2rem 1rem;
|
| 907 |
background: rgba(255, 255, 255, 0.03);
|
| 908 |
border-radius: 14px;
|
| 909 |
+
border: 2px dashed rgba(242, 106, 58, 0.2);
|
| 910 |
margin: 1rem 0;
|
| 911 |
}
|
| 912 |
.empty-state-icon { margin-bottom: 0.75rem; opacity: 0.7; line-height: 0; }
|
| 913 |
+
.empty-state-text { color: #928981; font-size: 0.9rem; margin: 0; }
|
| 914 |
|
| 915 |
/* βββ DIVIDER βββββββββββββββββββββββββββββββββββββββββββββββββββ */
|
| 916 |
hr {
|
| 917 |
border: none !important;
|
| 918 |
height: 1px !important;
|
| 919 |
+
background: linear-gradient(90deg, transparent 0%, rgba(242, 106, 58, 0.25) 50%, transparent 100%) !important;
|
| 920 |
margin: 1rem 0 !important;
|
| 921 |
}
|
| 922 |
|
| 923 |
/* Captions */
|
| 924 |
.caption, .stCaption, [data-testid="stCaptionContainer"] {
|
| 925 |
+
color: #928981 !important;
|
| 926 |
}
|
| 927 |
|
| 928 |
/* Markdown content (general text) */
|
| 929 |
.stMarkdown, .stMarkdown p, [data-testid="stMarkdownContainer"] {
|
| 930 |
+
color: #F5F3F1 !important;
|
| 931 |
}
|
| 932 |
+
.stMarkdown strong { color: #F2B391 !important; }
|
| 933 |
.stMarkdown code {
|
| 934 |
+
background: rgba(242, 106, 58, 0.16) !important;
|
| 935 |
+
color: #F2B391 !important;
|
| 936 |
padding: 0.15rem 0.45rem !important;
|
| 937 |
border-radius: 6px !important;
|
| 938 |
}
|
| 939 |
|
| 940 |
/* Spinner */
|
| 941 |
.stSpinner > div {
|
| 942 |
+
border-top-color: #F26A3A !important;
|
| 943 |
}
|
| 944 |
</style>
|
| 945 |
""", unsafe_allow_html=True)
|
| 946 |
|
| 947 |
|
| 948 |
+
# =============================================================================
|
| 949 |
+
# Authentication gate β must sign in with PTT (Entra ID) before using the app.
|
| 950 |
+
# Renders the themed login screen and st.stop()s when not authenticated.
|
| 951 |
+
# =============================================================================
|
| 952 |
+
require_login()
|
| 953 |
+
render_topbar()
|
| 954 |
+
|
| 955 |
+
|
| 956 |
# =============================================================================
|
| 957 |
# Session State
|
| 958 |
# =============================================================================
|
|
|
|
| 1170 |
st.markdown("""
|
| 1171 |
<div class="empty-state">
|
| 1172 |
<div class="empty-state-icon">
|
| 1173 |
+
<svg width="56" height="56" viewBox="0 0 24 24" fill="none" stroke="#F26A3A" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round">
|
| 1174 |
<circle cx="11" cy="11" r="7"></circle>
|
| 1175 |
<line x1="21" y1="21" x2="16.65" y2="16.65"></line>
|
| 1176 |
</svg>
|
|
|
|
| 1301 |
<p class="card-subtitle">Step 3 β Download</p>
|
| 1302 |
</div>
|
| 1303 |
</div>
|
| 1304 |
+
<div style="background: linear-gradient(135deg, rgba(242, 106, 58, 0.16) 0%, rgba(242, 106, 58, 0.10) 100%);
|
| 1305 |
+
border: 1px solid rgba(242, 106, 58, 0.4); padding: 0.85rem 1rem; border-radius: 14px;
|
| 1306 |
margin-bottom: 0.75rem;">
|
| 1307 |
<div style="display: flex; align-items: center; gap: 0.5rem;">
|
| 1308 |
+
<span style="background: linear-gradient(135deg, #F26A3A, #E85D27); color: white; width: 24px; height: 24px;
|
| 1309 |
border-radius: 50%; display: inline-flex; align-items: center;
|
| 1310 |
justify-content: center; font-size: 0.85rem;">β</span>
|
| 1311 |
+
<span style="font-weight: 600; color: #F26A3A;">ΰΈͺΰΈ£ΰΉΰΈ²ΰΈΰΉΰΈΰΈΰΈͺΰΈ²ΰΈ£ΰΈͺΰΈ³ΰΉΰΈ£ΰΉΰΈ!</span>
|
| 1312 |
</div>
|
| 1313 |
</div>
|
| 1314 |
""", unsafe_allow_html=True)
|